Remove unused return value of INIT(), making clang happy

This commit is contained in:
Martin Willi
2012-05-14 14:07:00 +02:00
parent 29b56078ea
commit 2e1f4a4631
+2 -3
View File
@@ -121,9 +121,8 @@
/** /**
* Object allocation/initialization macro, using designated initializer. * Object allocation/initialization macro, using designated initializer.
*/ */
#define INIT(this, ...) ({ (this) = malloc(sizeof(*(this))); \ #define INIT(this, ...) { (this) = malloc(sizeof(*(this))); \
*(this) = (typeof(*(this))){ __VA_ARGS__ }; \ *(this) = (typeof(*(this))){ __VA_ARGS__ }; }
(this); })
/** /**
* Method declaration/definition macro, providing private and public interface. * Method declaration/definition macro, providing private and public interface.