Skip to content
Browse files
[compilation] Tune warning options
Remove -Wdeclaration-after-statement as first using -std=gnu99 to allow c99
features and then explicitly requesting warnings about using c99 features
makes little sense.

Remove -W option as it is just backwards compatibility alias for

Remove -Wformat as it is implied by having -Wall present.

Signed-off-by: Simo Piiroinen <>
  • Loading branch information
spiiroin committed Feb 14, 2017
1 parent 3cd49b7 commit b846d8735312c199c28eed597c0a38f519cff5fa
Showing 1 changed file with 1 addition and 1 deletion.
@@ -22,7 +22,7 @@ test_gcc_flag() {

# We use gnu99 instead of c99 because many have interpreted the standard
# in a way that int64_t isn't defined on non-64 bit platforms.
CFLAGS="-Os -std=gnu99 -Wall -W -Wextra -pipe -Wformat -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -finline-small-functions -Wno-unused-result -fstack-protector -D_FORTIFY_SOURCE=2 -Wl,-z,relro,-z,now -fPIE -fpie -pie"
CFLAGS="-Os -std=gnu99 -Wall -Wextra -pipe -Wold-style-definition -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wendif-labels -Wpointer-arith -Wcast-align -Wwrite-strings -Winline -Wno-unused-parameter -finline-small-functions -Wno-unused-result -fstack-protector -D_FORTIFY_SOURCE=2 -Wl,-z,relro,-z,now -fPIE -fpie -pie"
LDFLAGS="-z relro -z now"

AC_ARG_ENABLE([debug], AS_HELP_STRING([--enable-debug],[Enable debug @<:@default=false@:>@]),

0 comments on commit b846d87

Please sign in to comment.