modernize list of gcc warning flags somewhat
This commit is contained in:
parent
64e5f07ad3
commit
a6bb26091a
11
configure.ac
11
configure.ac
|
@ -6,7 +6,16 @@ AM_MAINTAINER_MODE
|
||||||
|
|
||||||
AC_PROG_CC_C99
|
AC_PROG_CC_C99
|
||||||
if test "$GCC" = yes; then
|
if test "$GCC" = yes; then
|
||||||
CFLAGS="$CFLAGS -pipe -W -Wall -Wshadow -Wstrict-prototypes -std=c99 -pedantic -Wno-overlength-strings"
|
warnings="
|
||||||
|
-Wall -Wextra
|
||||||
|
-Wshadow
|
||||||
|
-Wcast-qual
|
||||||
|
-Wformat=2 -Wformat-signedness -Wformat-nonliteral
|
||||||
|
-Wstrict-prototypes
|
||||||
|
|
||||||
|
-Wno-overlength-strings
|
||||||
|
"
|
||||||
|
CFLAGS="$CFLAGS -pipe -std=c99 -pedantic $(echo $warnings)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user