This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/55830] inline and __attribute__((always_inline)) treated differently for unused-function warning
- From: "brooks at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 30 Dec 2012 21:46:02 +0000
- Subject: [Bug c/55830] inline and __attribute__((always_inline)) treated differently for unused-function warning
- Auto-submitted: auto-generated
- References: <bug-55830-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55830
--- Comment #2 from Brooks Moses <brooks at gcc dot gnu.org> 2012-12-30 21:46:02 UTC ---
Created attachment 29064
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29064
Minimal test case
The attached test case illustrates the problem. When compiled with -Wall
-Wextra -Werror, it reports:
bug55830.c:6:44: warning: 'bar' defined but not used
However, it does not report a similar warning for 'foo'.