[Bug c++/79695] spurious -Wunused-variable on a static global of a type declared unused

2018-08-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79695

Eric Gallager  changed:

   What|Removed |Added

 CC||dodji at gcc dot gnu.org

--- Comment #4 from Eric Gallager  ---
(In reply to Martin Sebor from comment #1)
> 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.

cc-ing Dodji who did that commit

[Bug c++/79695] spurious -Wunused-variable on a static global of a type declared unused

2017-08-22 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79695

Eric Gallager  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-08-22
 CC||egallager at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #3 from Eric Gallager  ---
Confirmed.

[Bug c++/79695] spurious -Wunused-variable on a static global of a type declared unused

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79695

Martin Sebor  changed:

   What|Removed |Added

   See Also||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=79667,
   ||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=79585,
   ||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=79548,
   ||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=71456,
   ||https://gcc.gnu.org/bugzill
   ||a/show_bug.cgi?id=44648

--- Comment #2 from Martin Sebor  ---
See bug 79667, bug 79585, bug 79548, bug 71456, and bug 44648 for other issues
related to -Wunused-variable.

[Bug c++/79695] spurious -Wunused-variable on a static global of a type declared unused

2017-02-23 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79695

Martin Sebor  changed:

   What|Removed |Added

   Keywords||diagnostic

--- Comment #1 from Martin Sebor  ---
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.