This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/48087] [4.5/4.6/4.7 Regression] -Wall -Werror adds warnings over and above those generated by -Wall
- From: "manu at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Oct 2011 15:42:42 +0000
- Subject: [Bug middle-end/48087] [4.5/4.6/4.7 Regression] -Wall -Werror adds warnings over and above those generated by -Wall
- Auto-submitted: auto-generated
- References: <bug-48087-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48087
Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |manu at gcc dot gnu.org
--- Comment #7 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-10-18 15:42:42 UTC ---
> Is there a simple explanation for why the problem didn't show up in 4.4.x?
The question is why control does not reach the warning() when -Werror is not
given. Are the warnings appropriate or bogus?
If the warnings are bogus (because they refer to the same function), then I
guess that the code path for warnings_as_error does not set TREE_NO_WARNING()
at some point.