On Wed, Aug 26, 2015 at 1:25 AM, Per Hedbor () @ Pike (-) developers forum 10353@lyskom.lysator.liu.se wrote:
C11 is default since gcc 5.2, I think. But C99 seems to have been skipped (as the default) entirely.
The example line of code that I gave works fine on my system (gcc 4.9.2), but that might be as an extension, not sure. But I have no idea what compilers Pike supports and what C standards they support.
ChrisA
If you add "-pedantic" to the gcc flags, it will inform you that the construct is not valid in the selected standard (which is C90 by default in gcc pre-5).
Even with "-pedantic", gcc does not make a full audit of the code against the standard, it simply enables all diagnostics required by the standard (and some additional ones).
pike-devel@lists.lysator.liu.se