[Bug c++/42748] warnings about 'mangling of 'va_list' has changed in GCC 4.4' not suppressed in sytem headers
manu at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Feb 18 19:44:00 GMT 2010
------- Comment #20 from manu at gcc dot gnu dot org 2010-02-18 19:44 -------
(In reply to comment #15)
> Subject: Re: warnings about 'mangling of 'va_list' has changed
> in GCC 4.4' not suppressed in sytem headers
>
> manu at gcc dot gnu dot org wrote:
>
> > Why is this a note and not simply a warning?
>
> Because, as noted earlier, it's not reflective of any likely problem in
> the user's code. I think a warning is appropriate if the compiler
> detects something which might indicate a bug in the application, but
> this is just the compiler telling you about that something might go
> wrong if you linked with code form a different version of G++. Which is
> unlikely, and might go wrong for other reasons too.
So it is the compiler telling you that something might go wrong and you can
silence it with -Wno-psabi, which is a warning option. Moreover, as it stands
now, if someone has -Werror=psabi, the compilation will not stop and they might
get bitten by this. Moreover2, -w will not silence the note. I still
completely fail to see why it is a note and not a warning.
In any case, using diagnostic_report_warnings_p (location) should fix it.
--
manu at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|manu at gcc dot gnu dot org |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42748
More information about the Gcc-bugs
mailing list