From 8795b926e032f6556b4a5c8225a91ba4cff7180b Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 11 Aug 2010 13:29:49 +0000 Subject: Disable -Wglobal-constructors by default svn-id: r51979 --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 # ####################################################################### -- cgit v1.2.3