tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=087f94569083db23786fb09d3b8bff3a3190dd80

commit 087f94569083db23786fb09d3b8bff3a3190dd80
Author: Tom Hacohen <t...@stosb.com>
Date:   Wed Nov 6 14:33:06 2013 +0000

    Eo: remove ; after while (0) in Eo.h.
    
    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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/eo/Eo.h b/src/lib/eo/Eo.h
index 8ec503f..228872f 100644
--- a/src/lib/eo/Eo.h
+++ b/src/lib/eo/Eo.h
@@ -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

-- 


Reply via email to