Re: [systemd-devel] [PATCH] Remove static_assert related warnings

2014-02-20 Thread Lennart Poettering
On Thu, 20.02.14 14:38, Holger Schurig (holgerschu...@gmail.com) wrote: Make macro assert_cc() not emit declaration after statements warnings. This can be done by using the GCC pragmas 'diagnostic ignore undefined'. In order to be able to use that pragma inside a macro, we need to put it

[systemd-devel] [PATCH] Remove static_assert related warnings

2014-02-20 Thread Holger Schurig
Make macro assert_cc() not emit declaration after statements warnings. This can be done by using the GCC pragmas 'diagnostic ignore undefined'. In order to be able to use that pragma inside a macro, we need to put it into the (C99-introduced) _Pragma() pseudo-function. --- src/shared/macro.h |