summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2019-09-09 10:50:30 +0200
committerraveit65 <[email protected]>2019-09-09 20:24:11 +0200
commit888b5650c24324b454e4460887c58dd7766d2f4a (patch)
tree0b2d09a8a5861df825f74a4a63723a08789b9376
parentabb3252122feb336e451f7d65647cf0af6d254af (diff)
downloadmate-applets-888b5650c24324b454e4460887c58dd7766d2f4a.tar.bz2
mate-applets-888b5650c24324b454e4460887c58dd7766d2f4a.tar.xz
build: extend --enable-more-warnings configure flag
Add -Wextra, -Wunused-but-set-variable, -Wformat-nonliteral -Wabsolute-value, -Werror=format-security CFLAGS_WARNINGS and drop -std=gnu89. -Wsign-compare is already in -Wextra.
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 0725fbef..7697730e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,10 +58,11 @@ if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
AC_MSG_RESULT(yes)
CFLAGS="\
-Wall \
+ -Wextra \
-Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith \
- -Wcast-align -Wsign-compare \
- -std=gnu89 \
+ -Wcast-align -Wunused-but-set-variable \
+ -Wformat-nonliteral -Wabsolute-value -Werror=format-security \
$CFLAGS"
for option in -Wno-strict-aliasing -Wno-sign-compare; do