public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/66869] New: [6 regression] -Wunused-function no longer warns for static declarations without definition
@ 2015-07-14 14:18 sirl at gcc dot gnu.org
2015-07-15 10:11 ` [Bug c/66869] " rguenth at gcc dot gnu.org
2015-07-21 11:18 ` mpolacek at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: sirl at gcc dot gnu.org @ 2015-07-14 14:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66869
Bug ID: 66869
Summary: [6 regression] -Wunused-function no longer warns for
static declarations without definition
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: sirl at gcc dot gnu.org
Target Milestone: ---
Up to gcc-5.1.1 r225711 -Wunused-functions warns like that:
> echo 'static void test(void);' | LANG=C gcc-5 -c -Wunused-function -x c -
<stdin>:1:13: warning: 'test' declared 'static' but never defined
[-Wunused-function]
>
But gcc-6.0.0 r225711 remains silent:
> echo 'static void test(void);' | LANG=C gcc-6 -c -Wunused-function -x c -
>
BTW, maybe it would make sense to split out this part from -Wunused-function
into a separate -Wstatic-decl-without-def. That's because likely more people
would like to turn this part of the warning into an error instead of all of
-Wunused-function.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/66869] [6 regression] -Wunused-function no longer warns for static declarations without definition
2015-07-14 14:18 [Bug c/66869] New: [6 regression] -Wunused-function no longer warns for static declarations without definition sirl at gcc dot gnu.org
@ 2015-07-15 10:11 ` rguenth at gcc dot gnu.org
2015-07-21 11:18 ` mpolacek at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-07-15 10:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66869
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldyh at gcc dot gnu.org
Target Milestone|--- |6.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/66869] [6 regression] -Wunused-function no longer warns for static declarations without definition
2015-07-14 14:18 [Bug c/66869] New: [6 regression] -Wunused-function no longer warns for static declarations without definition sirl at gcc dot gnu.org
2015-07-15 10:11 ` [Bug c/66869] " rguenth at gcc dot gnu.org
@ 2015-07-21 11:18 ` mpolacek at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-07-21 11:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66869
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-07-21
CC| |mpolacek at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Started with r224161 aka debug-early merge.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-07-21 11:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-14 14:18 [Bug c/66869] New: [6 regression] -Wunused-function no longer warns for static declarations without definition sirl at gcc dot gnu.org
2015-07-15 10:11 ` [Bug c/66869] " rguenth at gcc dot gnu.org
2015-07-21 11:18 ` mpolacek at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).