This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32562] New: -Wunused doesn't warn about static function only called by itself.
- From: "manu at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2007 12:59:16 -0000
- Subject: [Bug c++/32562] New: -Wunused doesn't warn about static function only called by itself.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This bug is solved in the C front-end (bug 4076).
The original patch also addressed the C++ front-end
http://gcc.gnu.org/ml/gcc-patches/2007-03/msg00171.html
However, some issues were raised about functions in anonymous namespaces:
http://gcc.gnu.org/ml/gcc-patches/2007-03/msg01103.html
--
Summary: -Wunused doesn't warn about static function only called
by itself.
Product: gcc
Version: unknown
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: manu at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32562