aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMax Horn2010-08-11 13:29:49 +0000
committerMax Horn2010-08-11 13:29:49 +0000
commit8795b926e032f6556b4a5c8225a91ba4cff7180b (patch)
tree7312bce09cfa6b5baaf3308b4a04aa954c742029 /Makefile
parent1b1044437716dd0f4dc1e591ba8f442fd85911e1 (diff)
downloadscummvm-rg350-8795b926e032f6556b4a5c8225a91ba4cff7180b.tar.gz
scummvm-rg350-8795b926e032f6556b4a5c8225a91ba4cff7180b.tar.bz2
scummvm-rg350-8795b926e032f6556b4a5c8225a91ba4cff7180b.zip
Disable -Wglobal-constructors by default
svn-id: r51979
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 01c04d0485..ad2f8fcf9f 100644
--- a/Makefile
+++ b/Makefile
@@ -27,8 +27,6 @@ ifeq "$(HAVE_GCC)" "1"
# Enable even more warnings...
CXXFLAGS+= -Wpointer-arith -Wcast-qual
CXXFLAGS+= -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings
- # Warn if global constructors are used.
- CXXFLAGS+= -Wglobal-constructors
# Currently we disable this gcc flag, since it will also warn in cases,
# where using GCC_PRINTF (means: __attribute__((format(printf, x, y))))
@@ -44,6 +42,10 @@ ifeq "$(HAVE_CLANG)" "1"
CXXFLAGS+= -Wno-conversion -Wno-shorten-64-to-32 -Wno-sign-compare -Wno-four-char-constants
endif
+# Warn if global constructors are used. Only available in GCC with LLVM backend
+# (and maybe clang?), hence off by default.
+#CXXFLAGS+= -Wglobal-constructors
+
#######################################################################
# Default commands - put the necessary replacements in config.mk #
#######################################################################