summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-09-29 10:30:20 +0200
committerunknown <msvensson@neptunus.(none)>2005-09-29 10:30:20 +0200
commit9a8482f69b4416f1bc97be3dd9fa4bcb2323043d (patch)
treeab2a06ac1c025db596cab9864ddfd6a1a7f5bf8e /BUILD
parent51361adaf6be15f404dd0e0c6988cd6a41d7c5ed (diff)
downloadmariadb-git-9a8482f69b4416f1bc97be3dd9fa4bcb2323043d.tar.gz
Add -ansi flag when building with gcc
BUILD/SETUP.sh: Add -ansi flag, make gcc not allow "C++ comments in C"
Diffstat (limited to 'BUILD')
-rwxr-xr-xBUILD/SETUP.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/BUILD/SETUP.sh b/BUILD/SETUP.sh
index 3f8a9ccaf22..91633139c9c 100755
--- a/BUILD/SETUP.sh
+++ b/BUILD/SETUP.sh
@@ -43,7 +43,7 @@ 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"
+global_warnings="-Wimplicit -Wreturn-type -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wparentheses -Wsign-compare -Wwrite-strings -ansi"
#debug_extra_warnings="-Wuninitialized"
c_warnings="$global_warnings -Wunused"
cxx_warnings="$global_warnings -Woverloaded-virtual -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor"