Anders Torger <[EMAIL PROTECTED]> writes:

> Compiler makes same mistake

Fix your code.

> the only difference is the warning

Which is the whole point.  Your example is violating the strict aliasing
rules and thus invoking undefined behaviour.

http://gcc.gnu.org/onlinedocs/gcc-3.4.3/gcc/Optimize-Options.html#index-fstrict_002daliasing-422

Andreas.

-- 
Andreas Schwab, SuSE Labs, [EMAIL PROTECTED]
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to