Bug 4172 - Add option to configure to disable warnings-as-errors behaviour
Summary: Add option to configure to disable warnings-as-errors behaviour
Status: RESOLVED FIXED
Alias: None
Product: frysk
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-08 17:11 UTC by Kris Van Hees
Modified: 2007-03-08 23:52 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kris Van Hees 2007-03-08 17:11:28 UTC
In order to support being able to test functionality, even in the event of
warnings being generated during the build process, configure should get an
option to disable the warnings-as-errors behaviour in all parts of the build. 
Doing it as a configure option ensures that as the build process changes over
time, this behaviour will remain consistent.

As a first use of this functionality in configure, the autobuild environments
can perform builds with and without the warnings-as-errors setting, providing
testing both on the level of correct code, and on the level of correct
functionality.
Comment 1 Kris Van Hees 2007-03-08 23:52:39 UTC
Change checked in:

This adds an option to configure that allows --enable-werror and
--disable-werror.  It is enabled by default (backwards compatible).
When --disable-werror is specified as argument to autogen.sh (which
passes it to configure), the -Werror option will *not* be specified
as part of CXXFLAGS, CFLAGS, and GCJFLAGS.  In addition, the hack to
work around the gcj problem (not actually reporting failure in the
event of warnings when -Werror is specified) will be disabled with
--disable-werror is specified.

The implementation of this option has been discussed at great length
on the frysk IRC channel on Mar 8th, 2007.

This commit modifies the earlier move of the "-Wall -Werror" options
from Makefile.rules to frysk-common.ac, by taking out the "-Werror"
option because that one is now under autoconf control.