* [Bug c++/20562] no unused warning for static arrays
2005-03-19 23:13 [Bug c++/20562] New: no unused warning for static arrays mueller at kde dot org
@ 2005-03-19 23:17 ` pinskia at gcc dot gnu dot org
2005-03-19 23:19 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-19 23:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-19 23:16 -------
(In reply to comment #0)
> There should be a "defined but not used" warning.
Why, this is a constant array so it is removed right?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20562
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/20562] no unused warning for static arrays
2005-03-19 23:13 [Bug c++/20562] New: no unused warning for static arrays mueller at kde dot org
2005-03-19 23:17 ` [Bug c++/20562] " pinskia at gcc dot gnu dot org
@ 2005-03-19 23:19 ` pinskia at gcc dot gnu dot org
2005-03-19 23:32 ` [Bug c/20562] " mueller at kde dot org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-19 23:19 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-03-19 23:19 -------
(In reply to comment #1)
> (In reply to comment #0)
> > There should be a "defined but not used" warning.
>
> Why, this is a constant array so it is removed right?
Never mind, but I can tell you this was already fixed by the time 4.0.0 was branched.
Try with -Wunused.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |minor
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20562
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/20562] no unused warning for static arrays
2005-03-19 23:13 [Bug c++/20562] New: no unused warning for static arrays mueller at kde dot org
2005-03-19 23:17 ` [Bug c++/20562] " pinskia at gcc dot gnu dot org
2005-03-19 23:19 ` pinskia at gcc dot gnu dot org
@ 2005-03-19 23:32 ` mueller at kde dot org
2005-03-20 22:46 ` bangerth at dealii dot org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mueller at kde dot org @ 2005-03-19 23:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mueller at kde dot org 2005-03-19 23:32 -------
whoops, wrong frontend.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Component|c++ |c
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20562
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/20562] no unused warning for static arrays
2005-03-19 23:13 [Bug c++/20562] New: no unused warning for static arrays mueller at kde dot org
` (2 preceding siblings ...)
2005-03-19 23:32 ` [Bug c/20562] " mueller at kde dot org
@ 2005-03-20 22:46 ` bangerth at dealii dot org
2005-03-20 23:22 ` mueller at kde dot org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2005-03-20 22:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From bangerth at dealii dot org 2005-03-20 22:46 -------
IIRC, this was intentional because people had a habit of writing RCS
"$ID:" strings at the top of files and wanted to find them again in
the executable to identify which files exactly were linked together.
You may find relevant discussions somewhere in the archives.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20562
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/20562] no unused warning for static arrays
2005-03-19 23:13 [Bug c++/20562] New: no unused warning for static arrays mueller at kde dot org
` (3 preceding siblings ...)
2005-03-20 22:46 ` bangerth at dealii dot org
@ 2005-03-20 23:22 ` mueller at kde dot org
2005-03-26 18:40 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: mueller at kde dot org @ 2005-03-20 23:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mueller at kde dot org 2005-03-20 23:22 -------
this is where __attribute__((unused)) kicks in..
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20562
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/20562] no unused warning for static arrays
2005-03-19 23:13 [Bug c++/20562] New: no unused warning for static arrays mueller at kde dot org
` (4 preceding siblings ...)
2005-03-20 23:22 ` mueller at kde dot org
@ 2005-03-26 18:40 ` pinskia at gcc dot gnu dot org
2005-04-07 7:51 ` pinskia at gcc dot gnu dot org
2005-07-07 13:37 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-26 18:40 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20562
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/20562] no unused warning for static arrays
2005-03-19 23:13 [Bug c++/20562] New: no unused warning for static arrays mueller at kde dot org
` (5 preceding siblings ...)
2005-03-26 18:40 ` pinskia at gcc dot gnu dot org
@ 2005-04-07 7:51 ` pinskia at gcc dot gnu dot org
2005-07-07 13:37 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-07 7:51 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.0.0 |---
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20562
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/20562] no unused warning for static arrays
2005-03-19 23:13 [Bug c++/20562] New: no unused warning for static arrays mueller at kde dot org
` (6 preceding siblings ...)
2005-04-07 7:51 ` pinskia at gcc dot gnu dot org
@ 2005-07-07 13:37 ` pinskia at gcc dot gnu dot org
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-07 13:37 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-07 13:37 -------
(In reply to comment #5)
> this is where __attribute__((unused)) kicks in..
But these shows up in system headers too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20562
^ permalink raw reply [flat|nested] 9+ messages in thread