This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/79695] spurious -Wunused-variable on a static global of a type declared unused
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Feb 2017 20:51:31 +0000
- Subject: [Bug c++/79695] spurious -Wunused-variable on a static global of a type declared unused
- Auto-submitted: auto-generated
- References: <bug-79695-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79695
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
Let me correct that: GCC warns on the first two variables, not on the local one
defined in function g(). It used to warn on it until r145440.