lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

It was thus said that the Great Lorenzo Donati once stated:
> On 05/01/2015 12:01, Roberto Ierusalimschy wrote:
> >>Update: I also ran the the test suite (with _U=true) and everything was
> >>fine. So it seems that those warnings don't imply something went
> >>horribly wrong.
> >
> >Thanks. Hopefuly the warnings will go away changing -std=c99 to
> >-std=gnu99.  (This change seems to be safe to all platforms that are
> >using -std=c99 now.)
> >
> I don't know the differences between the two compiler modes, but doesn't 
> this risk of opening the way for non-conformance "bugs" in the future? 
> Maybe a non-C99 GNU GCC feature could slip in and go undetected, or am I 
> missing something?

  The major difference, as far as I can tell, is that "-std=gnu99" defines
_GNU_SOURCE and allows some GNU extentions that aren't legal C99.  If you
use "-std=c99" and define _GNU_SOURCE, the warnings go away (that's how I
typically compile my C code under Linux).