diff options
author | Martin Willi <martin@revosec.ch> | 2012-05-14 14:07:00 +0200 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-05-14 14:07:00 +0200 |
commit | 2e1f4a46319ca43ba3fc309982a813ea506c7419 (patch) | |
tree | f588ccf40a0ad1e1443ef0c113e8b5dbac0e6b45 /src | |
parent | 29b56078ea3fe112660b3bc3579e8018d2c2ebad (diff) | |
download | strongswan-2e1f4a46319ca43ba3fc309982a813ea506c7419.tar.bz2 strongswan-2e1f4a46319ca43ba3fc309982a813ea506c7419.tar.xz |
Remove unused return value of INIT(), making clang happy
Diffstat (limited to 'src')
-rw-r--r-- | src/libstrongswan/utils.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstrongswan/utils.h b/src/libstrongswan/utils.h index c5718d9f8..d09319d0d 100644 --- a/src/libstrongswan/utils.h +++ b/src/libstrongswan/utils.h @@ -121,9 +121,8 @@ /** * 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. |