[OpenBSD's GCC] -O2 option does not include -fstrict-aliasing, as this option causes issues on some legacy code. http://man.openbsd.org/OpenBSD-current/man1/gcc-local.1 …
Yes it's compatible. Casting pointers is not aliasing, only accessing objects via lvalue of wrong type is.
-
-
Any correct code has to cast back to right sockaddr type to dereference, then types match.
-
And struct pointers are explicitly round-trippable to any other struct pointer type.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.