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 02/04/07, Martin Michlmayr <tbm@cyrius.com> wrote:
* Manuel López-Ibáñez <lopezibanez@gmail.com> [2007-04-02 12:58]:
> >missing newline: 42
> >error: "xxx" redefined: 33
>
> Martin, are those programs compiled with -pedantic or -pedantic-errors
> enabled?

Nope.

Then, if the warnings are not very useful but are mandated by the standard, I think that the sensible thing is to make them conditional on -pedantic. This way, people wanting strict diagnostics for nonconformant code can get them, while people that don't care about it don't need to suffer even a warning.

Just out of curiosity, does any of those programs use -Werror?

Thanks again,

Manuel.


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