This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28901] -Wunused-variable ignores unused const initialised variables
- From: "petschy at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 22 Oct 2014 18:47:09 +0000
- Subject: [Bug c/28901] -Wunused-variable ignores unused const initialised variables
- Auto-submitted: auto-generated
- References: <bug-28901-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=28901
petschy at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |petschy at gmail dot com
--- Comment #7 from petschy at gmail dot com ---
For backward compatibility, wouldn't it be better to add a new flag,
-Wunused-static-const-variable, instead of changing the behaviour of
-Wunused-variable?