projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d13594
)
Eo: Make sure semi-colons and other directives aren't used in eo_add.
author
Tom Hacohen
<tom@stosb.com>
Fri, 15 Apr 2016 12:52:32 +0000
(13:52 +0100)
committer
Tom Hacohen
<tom@stosb.com>
Fri, 15 Apr 2016 12:53:02 +0000
(13:53 +0100)
This was already enforced in the legacy version but was not enforced in
the GCC extension version. This change makes sure it's disallowed in
both.
src/lib/eo/Eo.h
patch
|
blob
|
history
diff --git
a/src/lib/eo/Eo.h
b/src/lib/eo/Eo.h
index c2c7d4c16838d028a629095805591383212374f3..194665013a98661bb394060e7cba57441c16d710 100644
(file)
--- a/
src/lib/eo/Eo.h
+++ b/
src/lib/eo/Eo.h
@@
-627,7
+627,7
@@
EAPI Eo *_eo_self_get(void);
# define _eo_add_common(klass, parent, is_ref, ...) \
({ \
Eo * const __eo_self = _eo_add_internal_start(__FILE__, __LINE__, klass, parent, is_ref, EINA_FALSE); \
-
__VA_ARGS__
; \
+
(void) (0, ##__VA_ARGS__)
; \
(Eo *) _eo_add_end(eo_self, EINA_FALSE); \
})