[Bug tree-optimization/113224] Warning "is used uninitialized" raised for an initialized variable
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113224 --- Comment #3 from gandalf at winds dot org --- Thank you for the suggestion. I'll try the union.
[Bug tree-optimization/113224] Warning "is used uninitialized" raised for an initialized variable
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113224 --- Comment #2 from Andrew Pinski --- >In an attempt to convert a float value bytewise to an integer, You should use memcpy instead (or an union which itself a GCC extension).
[Bug tree-optimization/113224] Warning "is used uninitialized" raised for an initialized variable
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113224 Andrew Pinski changed: What|Removed |Added Keywords||diagnostic Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski --- This code is undefined for violating C/C++ aliasing rules. The warning is because of the undefinedness of the code.