summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-10-03 16:24:47 +0200
committerunknown <msvensson@neptunus.(none)>2005-10-03 16:24:47 +0200
commit19dffd265e0e6b63572d226310cb3b9d17555fc5 (patch)
tree3dea88881179bfcbc5f179bd98d2e1952509462d /BUILD
parent8d31718c5b4fe27fbed8dddf034d595ed7cee9ed (diff)
downloadmariadb-git-19dffd265e0e6b63572d226310cb3b9d17555fc5.tar.gz
Move -ansi flag from global_warnings to cxx_warnings
BUILD/SETUP.sh: ansi glags should only be set for C++ compilation
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/SETUP.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index 91633139c9c..54546d632c8 100755
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -43,10 +43,10 @@ AM_MAKEFLAGS="-j 4"
# The following warning flag will give too many warnings:
# -Wshadow -Wunused -Winline (The later isn't usable in C++ as
# __attribute()__ doesn't work with gnu C++)
-global_warnings="-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -ansi"
+global_warnings="-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings"
#debug_extra_warnings="-Wuninitialized"
c_warnings="$global_warnings -Wunused"
-cxx_warnings="$global_warnings -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor"
+cxx_warnings="$global_warnings -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -ansi"
base_max_configs="--with-innodb --with-berkeley-db --with-ndbcluster --with-archive-storage-engine --with-raid --with-openssl --with-raid --with-vio"
max_leave_isam_configs="--with-innodb --with-berkeley-db --with-ndbcluster --with-archive-storage-engine --with-raid --with-openssl --with-raid --with-vio --with-embedded-server"