https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116885

--- Comment #9 from Jaroslav Fojtík <JaFojtik at seznam dot cz> ---
https://wiki.sei.cmu.edu/confluence/display/c/EXP39-C.+Do+not+access+a+variable+through+a+pointer+of+an+incompatible+type

Accessing to an incompatible type throug pointer is not clean in general. But I
need here to do a dirty job to flip endianity of double type. There are not
many means to do this cleanly. This job will be isolated in one place rather
that being spread across whole code.

I can camouflage it with memcpy to get rid of warnings, but the result will be
the same. I will prefer to use "-fno-strict-aliasing" on this one .c file.

Reply via email to