diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-01 09:30:52 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-01 09:33:07 +0200 |
commit | b3b955bef2b7f95afa033c97e4c3df4b7e4b5568 (patch) | |
tree | 408bdbed3c2950811eaeb121f182366f2b224e16 /tests/gsm0408/gsm0408_test.ok | |
parent | d24467579dba8a49dceb82d033316b62401ebfbc (diff) |
misc: Fix compiler warnings about the static_assert macro with gcc 4.8
The modified macro is still working on a gcc 4.7 and gcc 4.8 after the
removal of the typedef and addition of the unused attribute.
include/osmocom/core/msgb.h: In function ‘msgb_alloc_headroom’:
include/osmocom/core/utils.h:40:51: warning: typedef ‘dummyheadroom_bigger’ locally defined but not used [-Wunused-local-typedefs]
#define osmo_static_assert(exp, name) typedef int dummy##name [(exp) ? 1 : -1];
^
include/osmocom/core/msgb.h:386:2: note: in expansion of macro ‘osmo_static_assert’
osmo_static_assert(size > headroom, headroom_bigger);
^
Diffstat (limited to 'tests/gsm0408/gsm0408_test.ok')
0 files changed, 0 insertions, 0 deletions