This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/4076] -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: 16 Feb 2007 09:53:30 -0000
- Subject: [Bug c/4076] -Wunused doesn't warn about static function only called by itself.
- References: <bug-4076-1176@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from manu at gcc dot gnu dot org 2007-02-16 09:53 -------
I get warning for gcc/testsuite/objc.dg/headers.m
/home/manuel/src/trunk/gcc/testsuite/../../libobjc/objc/objc-list.h:144:
warning: 'list_free' defined but not used
What should I do about this?
1) there is no warning if I add the keyword "inline" to objc-list.h
(list_free).
2) add -Wno-unused-function to the testcase.
3) ??
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4076