This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: formats and syslog question
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Sat, 14 Sep 2002 23:09:55 +0100 (BST)
- Subject: Re: formats and syslog question
On 14 Sep 2002, Gabriel Dos Reis wrote:
> | | `-fpermissive'
> | | Downgrade messages about nonconformant code from errors to
> | | warnings. By default, G++ effectively sets `-pedantic-errors'
> | | without `-pedantic'; this option reverses that. This behavior and
> | | this option are superseded by `-pedantic', which works as it does
> | | for GNU C.
>
> This doesn't make sense. What -pedantic-errors does is to turn
> warnings generated by -pedantic into errors.
The intended meaning of this documentation is of course that mandatory
pedwarns are errors by default for C++. The problem is how to express
clearly to the user four classes of warnings with respect to -pedantic,
mandatory warning()s, mandatory pedwarn()s, pedwarn()s if pedantic and
warning()s if pedantic, all four of which occur.
--
Joseph S. Myers
jsm28@cam.ac.uk