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: error: "no newline at end of file"


On Tue, 27 Mar 2007, gdr@cs.tamu.edu wrote:

> my understanding of pedwarn (since over a decade) is I explained.
> Now, if we do have some good diagnostics, we should not lose them,
> as a matter of restoring the traditional meaning of pedwarns.
> Do you have an approximate list of those diagnostics?
> 
> > Nonetheless, if you really think it is a bug, I am willing to prepare
> > a patch to fix it in both the front-end and the preprocessor.
> 
> If a pedwarn is an error without -pedantic, then we have a bug.

In C, a pedwarn is a warning by default, an error with -pedantic-errors.

In C++, a pedwarn is an error by default, a warning with -fpermissive.

This is completely independent of whether a particular pedwarn call in the 
source is executed at runtime.  Some are unconditional, and some only 
occur if -pedantic.

-- 
Joseph S. Myers
joseph@codesourcery.com


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