[haiku-bugs] Re: [Haiku] #6333: Jamfiles shouldn't use -Wall

  • From: "stippi" <trac@xxxxxxxxxxxx>
  • Date: Fri, 05 Nov 2010 16:54:48 -0000

#6333: Jamfiles shouldn't use -Wall
---------------------------+------------------------------
  Reporter:  kaliber       |        Owner:  stippi
      Type:  enhancement   |       Status:  in-progress
  Priority:  normal        |    Milestone:  R1
 Component:  Build System  |      Version:  R1/Development
Resolution:                |     Keywords:
Blocked By:                |  Has a Patch:  1
  Platform:  All           |     Blocking:
---------------------------+------------------------------
Description changed by stippi:

Old description:

> BuildSetup defines default warning flags, but some of Jamfiles adds its
> own. If -Wall is added then it could re-enable some warnings. For
> example:
>
> BuildSetup defines:
> {{{
> HAIKU_WARNING_CCFLAGS = -Wall -Wno-trigraphs ...
> src/add-ons/kernel/drivers/network/etherpci/Jamfile defines:
> SubDirCcFlags -Wall ;
> }}}
>
> and the final CFLAGS are:
> {{{
> -Wall -Wno-trigraphs ... -Wall
> }}}
> Since -Wall implies -Wtrigraphs, the final result may be different then
> expected.

New description:

 BuildSetup defines default warning flags, but some of Jamfiles adds its
 own. If -Wall is added then it could re-enable some warnings. For example:

 BuildSetup defines:
 {{{
 HAIKU_WARNING_CCFLAGS = -Wall -Wno-trigraphs ...
 }}}
 src/add-ons/kernel/drivers/network/etherpci/Jamfile defines:
 {{{
 SubDirCcFlags -Wall ;
 }}}

 and the final CFLAGS are:
 {{{
 -Wall -Wno-trigraphs ... -Wall
 }}}
 Since -Wall implies -Wtrigraphs, the final result may be different then
 expected.

--

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/6333#comment:4>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: