Bug#530949: gcc-4.4: warns about idiomatic use of Berkeley sockets
"brian m. carlson" <sandals@crustytoothpaste.ath.cx> writes:
> I expect that when used on a POSIX system (at least in strict POSIX mode
> or when invoked as "c99"), gcc-4.4 neither warns nor generates code
> contrary to POSIX with -O2 -Wall.
You can add -fno-strict-aliasing which will disable the optimisation
and thus prevent the warning. -O2 is documented to include
-fstrict-aliasing which is the optimisation that causes the warning.
Reply to: