Why is gcc going to default to "GNU dialect of ISO C99?"

Patrick Horgan phorgan1@yahoo.com
Fri Feb 12 05:32:00 GMT 2010


Alexey Salmin wrote:
> It all reminds me a story when I won a bottle of beer from my
> scientific adviser back in 2005. We had a bet: will gcc compile this
> code:
> #include <stdio.h>
>  int main() {
>   printf("a");
>   int a;
>   printf("b");
>   return 0;
> }
> He was so sure that gcc won't allow it that didn't ever tried :) Thus,
> I think gnu extensions by default are not so bad :)
>   
if you use -pedantic it will at least whine about it.

Patrick



More information about the Gcc-help mailing list