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"


Zack Weinberg wrote:
Martin Michlmayr wrote:
...
- The "no newline" and "xxx redfined" pedwarnings should be converted
  into normal warnings.  Rationale: no newline doesn't harm anyone and
  there are quite a few programs that would fail because of an error
  that many agree is too strict.  Redefining something with -D seems
  like an useful feature and again quite a few applications do this.

I regret to say that the "xxx redefined" diagnostic *is* mandatory per C99 - 6.10.3p2:

How can the C99 standard have anything to say about the meaning of -D?



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