Remove unused return value of INIT(), making clang happy
authorMartin Willi <martin@revosec.ch>
Mon, 14 May 2012 12:07:00 +0000 (14:07 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 14 May 2012 12:07:00 +0000 (14:07 +0200)
src/libstrongswan/utils.h

index c5718d9..d09319d 100644 (file)
 /**
  * Object allocation/initialization macro, using designated initializer.
  */
-#define INIT(this, ...) ({ (this) = malloc(sizeof(*(this))); \
-                                                  *(this) = (typeof(*(this))){ __VA_ARGS__ }; \
-                                                  (this); })
+#define INIT(this, ...) { (this) = malloc(sizeof(*(this))); \
+                                                  *(this) = (typeof(*(this))){ __VA_ARGS__ }; }
 
 /**
  * Method declaration/definition macro, providing private and public interface.