This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]