This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/18017] New: -Winit-self should automatically turn on -Wuninitialized
- From: "ejb at ql dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2004 16:49:35 -0000
- Subject: [Bug c/18017] New: -Winit-self should automatically turn on -Wuninitialized
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The documentation clearly states that -Winit-self doesn't work without
-Wuninitialized. I think it would be a lot better if it just automatically
turned on -Wuninitialized instead. For example, compiling the example in bug
18016 with -Winit-self but not -Wuninitialized doesn't generate any warnings at
all, which is as expected based on the documentation, but is still somewhat
counter-intuitive.
--
Summary: -Winit-self should automatically turn on -Wuninitialized
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: minor
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ejb at ql dot org
CC: ejb at ql dot org,gcc-bugs at gcc dot gnu dot org
GCC build triplet: any
GCC host triplet: any
GCC target triplet: any
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18017