]> git.ipfire.org Git - thirdparty/util-linux.git/commit
include: fix compiler warnings
authorSami Kerola <kerolasa@iki.fi>
Sun, 28 Sep 2014 19:51:43 +0000 (20:51 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 1 Oct 2014 10:33:35 +0000 (12:33 +0200)
commit2a0d2a8e11adfde412a8b70c4fdafa607e84c670
treeca6385b00c35463c137b889b8c531eb9c4e7d35d
parent4c87bb0d99d1eb9c4fd52f80214db57b40c82fdb
include: fix compiler warnings

This change has motivation to make -Wall -pedantic compiler options to
spit a little bit less noise, which with luck will increase change to
notice real issues.

Multiple of these:

warning: ISO C forbids braced-groups within expressions [-Wpedantic]

And nearly 300 times reported:

include/c.h:75:41: warning: struct has no named members [-Wpedantic]
 #define UL_BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
include/c.h
include/list.h