This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/10416] 'unused variable' warning ignores ctor/dtor side-effects
- From: "mbp at sourcefrog dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Aug 2004 00:02:03 -0000
- Subject: [Bug c++/10416] 'unused variable' warning ignores ctor/dtor side-effects
- References: <20030415185600.10416.gccbugs@contacts.eelis.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From mbp at sourcefrog dot net 2004-08-11 00:02 -------
Workaround: Adding an empty constructor suppresses the warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10416