This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/65812] gcc 4.9.1 doesn't warn about uninitialized variable use declared in a switch/case statement when compiled with -O
- From: "joe at perches dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Apr 2015 11:18:53 +0000
- Subject: [Bug c/65812] gcc 4.9.1 doesn't warn about uninitialized variable use declared in a switch/case statement when compiled with -O
- Auto-submitted: auto-generated
- References: <bug-65812-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65812
--- Comment #3 from Joe Perches <joe at perches dot com> ---
Thank you both for your very prompt replies.
It might be useful to have a -Wunused-eliminated type extra warning
though that might be very noisy.