aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMax Horn2010-08-11 12:49:28 +0000
committerMax Horn2010-08-11 12:49:28 +0000
commitaa265f1541a2633d01a686eaa272d15fc7364a5e (patch)
treeedd33350c4e22c8415cf8717dda32416c9ced74c /Makefile
parentb8ee574e40676a711e07312f859c11da988e517a (diff)
downloadscummvm-rg350-aa265f1541a2633d01a686eaa272d15fc7364a5e.tar.gz
scummvm-rg350-aa265f1541a2633d01a686eaa272d15fc7364a5e.tar.bz2
scummvm-rg350-aa265f1541a2633d01a686eaa272d15fc7364a5e.zip
BUILD: Add -Wglobal-constructors to default warnings
svn-id: r51975
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 6b64759ebd..01c04d0485 100644
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,8 @@ 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))))