Re: A little bit of C fun...

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

 



On Thu, 23 Oct 2008, John Carter wrote:

I compiled this with gcc 3 and gcc 4 using -std=c89 and -std=c99 with
-Wall and -W.
-W warns about a(&(b){}) but that is one of those cases where -W
warns about a potential omission in a legal operation.

Ah. I forgot to say -pedantic with the -std=

If I say -pedantic gcc only accepts this stuff for -std=c99 and
doesn't accept the {} empty initializer. (Not that it matters, in that
something still interesting occurs with the {c} version if it contains
more than one field.)



John Carter                             Phone : (64)(3) 358 6639
Tait Electronics                        Fax   : (64)(3) 359 4632
PO Box 1645 Christchurch                Email : john.carter@xxxxxxxxxx
New Zealand


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux