From 420bb86ee0722cb214378611d8b0ceffedfc5eba Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 28 Jun 2010 14:51:23 +0000 Subject: Add a new configure option --maintainer-mode which turns on the full set of warning flags. Use just plain '-Wall -W' for regular GCC so the default build is happy on arbitrarily old versions. --- src/build-data/cc/gcc.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/build-data/cc/gcc.txt') diff --git a/src/build-data/cc/gcc.txt b/src/build-data/cc/gcc.txt index 6d68dc890..06840b362 100644 --- a/src/build-data/cc/gcc.txt +++ b/src/build-data/cc/gcc.txt @@ -11,8 +11,9 @@ add_lib_dir_option -L add_lib_option -l lang_flags "-D_REENTRANT -ansi -Wno-long-long" -#warning_flags "-W -Wall" -warning_flags "-Werror -Wextra -Wall -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual" +warning_flags "-W -Wall" + +maintainer_warning_flags "-Werror -Wall -Wextra -Wstrict-aliasing -Wstrict-overflow=5 -Wcast-align -Wmissing-declarations -Wpointer-arith -Wcast-qual" lib_opt_flags "-O3" check_opt_flags "-O2" -- cgit v1.2.3