diff options
author | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-06-18 16:15:33 +0000 |
---|---|---|
committer | tradke <tradke@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-06-18 16:15:33 +0000 |
commit | 75f997988ed64a8f8e5a24482642eeb556a2e853 (patch) | |
tree | 349cfbf94d6c40325f3e5e88f47c2cb3eff971bf /lib/make/configure | |
parent | 0d3694da361c1084f95d530c3ed5a90562f67f9e (diff) |
Added some more options to C_WARN_FLAGS and CXX_WARN_FLAGS resp.
if the C/C++ compiler is gcc/[cg]++.
Since this is set by configure now it will be used for all architectures
(not just Linux).
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2236 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make/configure')
-rwxr-xr-x | lib/make/configure | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/make/configure b/lib/make/configure index ac45b491..0c0fb256 100755 --- a/lib/make/configure +++ b/lib/make/configure @@ -4578,7 +4578,7 @@ fi if test -z "$C_WARN_FLAGS" ; then case "$CC" in gcc) - C_WARN_FLAGS="-Wall" + C_WARN_FLAGS="-Wall -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Winline" ;; *) # Not sure what should be a reasonable default. @@ -4591,8 +4591,8 @@ fi if test -z "$CXX_WARN_FLAGS" ; then case "$CXX" in - g++) - CXX_WARN_FLAGS="-Wall" + c++ | g++) + CXX_WARN_FLAGS="\$(C_WARN_FLAGS) -Woverloaded-virtual" ;; *) # Not sure what should be a reasonable default. |