aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heider2009-03-19 18:52:38 +0000
committerAndre Heider2009-03-19 18:52:38 +0000
commita0545c413330d5993806e8d7956a1c254d77020b (patch)
treef47e4b73d78845973600f62ad029cf00aba37ea4
parent845f8d018b139a38acf00107f1f95c67a69c363e (diff)
downloadscummvm-rg350-a0545c413330d5993806e8d7956a1c254d77020b.tar.gz
scummvm-rg350-a0545c413330d5993806e8d7956a1c254d77020b.tar.bz2
scummvm-rg350-a0545c413330d5993806e8d7956a1c254d77020b.zip
Moved -pedantic from Makefile to the end of configure script
svn-id: r39530
-rw-r--r--Makefile2
-rwxr-xr-xconfigure49
2 files changed, 29 insertions, 22 deletions
diff --git a/Makefile b/Makefile
index 2395511ee3..4555b46430 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ CXXFLAGS:= -Wall $(CXXFLAGS)
# Turn off some annoying and not-so-useful warnings
CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder
# Enable even more warnings...
-CXXFLAGS+= -pedantic -Wpointer-arith -Wcast-qual -Wcast-align
+CXXFLAGS+= -Wpointer-arith -Wcast-qual -Wcast-align
CXXFLAGS+= -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings
# Disable RTTI and exceptions, and enabled checking of pointers returned by "new"
diff --git a/configure b/configure
index 15658059da..5a5f0e60bd 100755
--- a/configure
+++ b/configure
@@ -973,27 +973,6 @@ if test "$cxx_verc_fail" = yes ; then
fi
#
-# Do CXXFLAGS now we know the compiler version
-#
-if test "$_cxx_major" -ge "3" ; then
- case $_host_os in
- mingw* | cygwin* | dreamcast)
- CXXFLAGS="$CXXFLAGS -W -Wno-unused-parameter"
- ;;
- *)
- CXXFLAGS="$CXXFLAGS -ansi -W -Wno-unused-parameter"
- ;;
- esac
- add_line_to_config_mk 'HAVE_GCC3 = 1'
-fi;
-
-if test "$_cxx_major" -ge "4" && test "$_cxx_minor" -ge "3" ; then
- CXXFLAGS="$CXXFLAGS -Wno-parentheses -Wno-empty-body"
-else
- CXXFLAGS="$CXXFLAGS -Wconversion"
-fi;
-
-#
# Check for endianness
#
echo_n "Checking endianness... "
@@ -1755,6 +1734,34 @@ case $_backend in
esac
#
+# Do CXXFLAGS now we know the compiler version
+#
+if test "$_cxx_major" -ge "3" ; then
+ case $_host_os in
+ mingw* | cygwin* | dreamcast)
+ CXXFLAGS="$CXXFLAGS -W -Wno-unused-parameter"
+ ;;
+ *)
+ CXXFLAGS="$CXXFLAGS -ansi -W -Wno-unused-parameter"
+ ;;
+ esac
+ add_line_to_config_mk 'HAVE_GCC3 = 1'
+fi;
+
+if test "$_cxx_major" -ge "4" && test "$_cxx_minor" -ge "3" ; then
+ CXXFLAGS="$CXXFLAGS -Wno-parentheses -Wno-empty-body"
+else
+ CXXFLAGS="$CXXFLAGS -Wconversion"
+fi;
+
+# Some platforms use certain GNU extensions in header files
+case $_host_os in
+*)
+ CXXFLAGS="$CXXFLAGS -pedantic"
+ ;;
+esac
+
+#
# Engine selection
#
_engines_built_static=""