On Fri, 5 Oct 2007, Ken Murchison wrote:

I spent a lot of time cleaning things up so that the number of warnings from 'gcc -W -Wall' are minimal. The one that has me baffled is this:

warning: type-punning to incomplete type might break strict-aliasing rules

I only see this with GCC 4.1.0 if -fstrict-aliasing or -O2 is set.

The GCC man page explains -fstrict-aliasing. I also found the following:

   http://en.wikipedia.org/wiki/Type_punning

--
David Carter                             Email: [EMAIL PROTECTED]
University Computing Service,            Phone: (01223) 334502
New Museums Site, Pembroke Street,       Fax:   (01223) 334679
Cambridge UK. CB2 3QH.

Reply via email to