This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/58236] -Wuninitialized doesn't report uninitialised variable as expected


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58236

--- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> ---
Note, from the documentation of -Wuninitialized:

"Because these warnings depend on optimization, the exact variables or elements
for which there are warnings depends on the precise optimization options and
version of GCC used."

You need to pass -O2 on the command line, and then you'll get warnings.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]