Eo: remove ; after while (0) in Eo.h.
authorTom Hacohen <tom@stosb.com>
Wed, 6 Nov 2013 14:33:06 +0000 (14:33 +0000)
committerTom Hacohen <tom@stosb.com>
Wed, 6 Nov 2013 14:38:29 +0000 (14:38 +0000)
The whole point of having "do {} while (0);" is to force people to add a
; after the call to the macro. Therefore there should be no semicolon.

src/lib/eo/Eo.h

index 8ec503f..228872f 100644 (file)
@@ -1173,7 +1173,7 @@ enum {
 #define eo_weak_ref(wref)                      \
   do {                                         \
     if (*wref) eo_do(*wref, eo_wref_add(wref));        \
-  } while (0);
+  } while (0)
 
 /**
  * @def eo_weak_unref
@@ -1191,7 +1191,7 @@ enum {
 #define eo_weak_unref(wref)                    \
   do {                                         \
     if (*wref) eo_do(*wref, eo_wref_del(wref));        \
-  } while (0);
+  } while (0)
 
 /**
  * @def eo_wref_del_safe