From 6611aebf3c799216d34138166b5b5923d072a8f4 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Sat, 23 Feb 2019 10:55:02 -0600 Subject: [PATCH] Define the warnings for the new set of options. This avoids warnings=all and warnings-as-errors=on causing irreprerable damage to humans. And makes it possible to have more warnings without destorying the universe. fixes #394 --- src/tools/gcc.jam | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index c57c773f9..83c18d5b5 100644 --- a/src/tools/gcc.jam +++ b/src/tools/gcc.jam @@ -235,7 +235,7 @@ rule init ( version ? : command * : options * : requirement * ) # Information about the gcc command... # The command. local command = $(tool-command) ; - # The 'command' variable can have multiple elements but when calling the + # The 'command' variable can have multiple elements but when calling the # SHELL builtin we need a single string, and we need to quote elements # with spaces. local command-string = \"$(command)\" ; @@ -353,7 +353,7 @@ rule init ( version ? : command * : options * : requirement * ) rc-type = null ; } rc.configure $(rc) : $(condition) : $(rc-type) ; - + toolset.flags gcc VERSION $(condition) : [ regex.split $(version) "[.]" ] ; init-cxxstd-flags $(condition) : $(version) ; @@ -712,7 +712,9 @@ toolset.flags gcc.compile OPTIONS full : -finline-functions -Wno-inlin toolset.flags gcc.compile OPTIONS off : -w ; toolset.flags gcc.compile OPTIONS on : -Wall ; -toolset.flags gcc.compile OPTIONS all : -Wall -pedantic ; +toolset.flags gcc.compile OPTIONS all : -Wall ; +toolset.flags gcc.compile OPTIONS extra : -Wall -Wextra ; +toolset.flags gcc.compile OPTIONS pedantic : -Wall -Wextra -pedantic ; toolset.flags gcc.compile OPTIONS on : -Werror ; toolset.flags gcc.compile OPTIONS on : -g ; @@ -916,7 +918,7 @@ toolset.flags gcc.link.dll .IMPLIB-COMMAND cygwin : "-Wl,--out-implib # See note [1] toolset.flags gcc.link OPTIONS darwin/static : -static ; - + # vxworks # On VxWorks we want to reflect what ever special flags have been set in the # environment for the CPU we are targeting in the cross build @@ -924,7 +926,7 @@ toolset.flags gcc.link.dll .IMPLIB-COMMAND cygwin : "-Wl,--out-implib toolset.flags gcc.link OPTIONS vxworks/static : [ os.environ LDFLAGS_STATIC ] ; toolset.flags gcc.link.dll OPTIONS vxworks : [ os.environ LDFLAGS_SO ] ; toolset.flags gcc.link OPTIONS vxworks/shared : [ os.environ LDFLAGS_DYNAMIC ] ; - + # default local generic-os = [ set.difference $(all-os) : aix darwin vxworks solaris osf hpux ] ; @@ -993,7 +995,7 @@ toolset.flags gcc.link.dll .IMPLIB-COMMAND cygwin : "-Wl,--out-implib toolset.flags gcc.link OPTIONS hpux/on : -Wl,-s ; - toolset.flags gcc.link HAVE_SONAME hpux : "" ; + toolset.flags gcc.link HAVE_SONAME hpux : "" ; toolset.flags gcc.link SONAME_OPTION hpux : +h ; # osf