From d99745be21ad9affc7e127944556c74da07440c4 Mon Sep 17 00:00:00 2001 From: "arseny.kapoulkine" Date: Sun, 19 Dec 2010 10:16:37 +0000 Subject: Enabled many additional GCC warnings (most notably -Wshadow and -Wold-style-cast), fixed the code accordingly git-svn-id: http://pugixml.googlecode.com/svn/trunk@800 99668b35-9821-0410-8761-19e4c4f06640 --- Jamrules.jam | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Jamrules.jam') diff --git a/Jamrules.jam b/Jamrules.jam index e3a76ce..d253a69 100644 --- a/Jamrules.jam +++ b/Jamrules.jam @@ -34,7 +34,15 @@ if ( $(toolset:I=^mingw) || $(toolset:I=^gcc) ) { local RESULT = -D$(DEFINES) ; - RESULT += -W -Wall -Wextra -Werror -pedantic ; + RESULT += -W -Wall -Wextra -pedantic -Werror ; + RESULT += -Wabi -Wctor-dtor-privacy -Wno-non-template-friend -Wold-style-cast -Wcast-qual -Wcast-align ; + RESULT += -Woverloaded-virtual -Wno-pmf-conversions -Wsign-promo -Wformat=2 -Winit-self -Wswitch-default ; + RESULT += -Wunused -Wstrict-aliasing=2 -Wundef -Wshadow -Wredundant-decls ; + + if ( $(toolset) != mingw34 ) + { + RESULT += -Wstrict-null-sentinel -Wlogical-op -Wmissing-declarations ; + } if ( $(toolset:I=_0x) ) { -- cgit v1.2.3