This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/55830] inline and __attribute__((always_inline)) treated differently for unused-function warning


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'.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]