All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] util: Remove semicolons in single-statement macros
@ 2016-10-24 18:44 Mat Martineau
  2016-10-24 18:44 ` [PATCH 2/5] key: Make key/keychain revocation optional when freeing Mat Martineau
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Mat Martineau @ 2016-10-24 18:44 UTC (permalink / raw)
  To: ell

[-- Attachment #1: Type: text/plain, Size: 882 bytes --]

Including semicolons in L_AUTO_CLEANUP_VAR and L_AUTO_FREE_VAR caused
gcc to emit errors related to mixed declarations and code when there
were multiple L_AUTO_* lines or declarations following an L_AUTO_ macro.
---
 ell/util.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ell/util.h b/ell/util.h
index 92e7c8a..8d1050e 100644
--- a/ell/util.h
+++ b/ell/util.h
@@ -160,10 +160,10 @@ static inline void l_put_be64(uint64_t val, void *ptr)
 }
 
 #define L_AUTO_CLEANUP_VAR(vartype,varname,destroy) \
-	vartype varname __attribute__((cleanup(destroy)));
+	vartype varname __attribute__((cleanup(destroy)))
 
 #define L_AUTO_FREE_VAR(vartype,varname) \
-	vartype varname __attribute__((cleanup(auto_free)));
+	vartype varname __attribute__((cleanup(auto_free)))
 
 #define L_ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
 
-- 
2.10.1


^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-10-24 20:45 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-24 18:44 [PATCH 1/5] util: Remove semicolons in single-statement macros Mat Martineau
2016-10-24 18:44 ` [PATCH 2/5] key: Make key/keychain revocation optional when freeing Mat Martineau
2016-10-24 18:47   ` Mat Martineau
2016-10-24 18:55   ` Marcel Holtmann
2016-10-24 19:07     ` Denis Kenzior
2016-10-24 20:34       ` Mat Martineau
2016-10-24 20:39         ` Marcel Holtmann
2016-10-24 20:45         ` Denis Kenzior
2016-10-24 18:44 ` [PATCH 3/5] unit: Update for new l_key_free/l_keyring_free revoke parameter Mat Martineau
2016-10-24 18:44 ` [PATCH 4/5] tls: Validate cert chain using l_keyring Mat Martineau
2016-10-24 18:44 ` [PATCH 5/5] unit: Fix memory leak in trust chain test Mat Martineau
2016-10-24 19:06 ` [PATCH 1/5] util: Remove semicolons in single-statement macros Denis Kenzior

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.