Re:A nice, little known C feature: Static array indices in p...
by niggler on Monday February 18, 2013 @01:11PM
(#5239608)
Not in front of a computer, but have you tried -std=gnu99
[ Parent
| on HN ]
Re:A nice, little known C feature: Static array indices in p...
by DiabloD3 on Monday February 18, 2013 @01:21PM
(#5239648)
Thats a bad way of writing code, to be honest. On projects I run, code has to be warning free with -Wall -Wextra -pedantic -std=c99
Re:A nice, little known C feature: Static array indices in p...
by kelnos on Monday February 18, 2013 @03:49PM
(#5240548)
It's not bad at all, at least if you've made the conscious decision to write GNU C and not std C, and accept that non-gcc compilers (except maybe clang) may not be able to compile your code.
Unfortunately, though, I believe one of the -std=gnuXX variants is the default, so most people don't make that a conscious decision.
Re:A nice, little known C feature: Static array indices in p...
by niggler on Monday February 18, 2013 @03:58PM
(#5240591)
gnu89 is the default. gnu99 will be the default when C99 is fully implemented (from the manpage, search for /-std=$/)
Re:A nice, little known C feature: Static array indices in p...
by simias on Tuesday February 19, 2013 @03:52AM
(#5243351)
C99 is still not fully implemented in GCC? What's missing?
Re:A nice, little known C feature: Static array indices in p...
by TorKlingberg on Tuesday February 19, 2013 @09:11AM
(#5244323)
There is a list at http://gcc.gnu.org/c99status.html