diff options
author | Max Horn | 2010-08-11 13:29:49 +0000 |
---|---|---|
committer | Max Horn | 2010-08-11 13:29:49 +0000 |
commit | 8795b926e032f6556b4a5c8225a91ba4cff7180b (patch) | |
tree | 7312bce09cfa6b5baaf3308b4a04aa954c742029 /Makefile | |
parent | 1b1044437716dd0f4dc1e591ba8f442fd85911e1 (diff) | |
download | scummvm-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-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 # ####################################################################### |