From 888b5650c24324b454e4460887c58dd7766d2f4a Mon Sep 17 00:00:00 2001 From: raveit65 Date: Mon, 9 Sep 2019 10:50:30 +0200 Subject: 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. --- configure.ac | 5 +++-- 1 file 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 -- cgit v1.2.1