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"


Martin Michlmayr <tbm@cyrius.com> writes:

| * Gabriel Dos Reis <gdr@cs.tamu.edu> [2007-03-27 09:33]:
| > -pedantic asks for strict checking of rules.  User should accept
| > correcting their codes (or used codes) with they ask for strict
| > checking.
| 
| They didn't "ask" for it because G++ does it by default.

-pedantic transforms a pedwarn into an error -- otherwise the
diagnostic remains an unconditional warning.  If it is an
unconditional error, then something is odd in the setting of flags.

-- Gaby


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