BUILD: Add -Wglobal-constructors to default warnings
svn-id: r51975
This commit is contained in:
parent
b8ee574e40
commit
aa265f1541
1 changed files with 2 additions and 0 deletions
2
Makefile
2
Makefile
|
@ -27,6 +27,8 @@ ifeq "$(HAVE_GCC)" "1"
|
||||||
# Enable even more warnings...
|
# Enable even more warnings...
|
||||||
CXXFLAGS+= -Wpointer-arith -Wcast-qual
|
CXXFLAGS+= -Wpointer-arith -Wcast-qual
|
||||||
CXXFLAGS+= -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings
|
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,
|
# Currently we disable this gcc flag, since it will also warn in cases,
|
||||||
# where using GCC_PRINTF (means: __attribute__((format(printf, x, y))))
|
# where using GCC_PRINTF (means: __attribute__((format(printf, x, y))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue