bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-Winline generates warnings against gnulib code


From: Reuben Thomas
Subject: -Winline generates warnings against gnulib code
Date: Mon, 9 Jul 2012 01:12:20 +0100

Compiling with -Winline, I get warnings like this:

src/main.c: In function 'main':
./lib/gl_xlist.h:124:1: warning: inlining failed in call to
'gl_list_add_last_inline': call is unlikely and code size would grow
[-Winline]
src/main.c:174:35: warning: called from here [-Winline]
./lib/gl_xlist.h:124:1: warning: inlining failed in call to
'gl_list_add_last_inline': call is unlikely and code size would grow
[-Winline]
src/main.c:175:35: warning: called from here [-Winline]
./lib/gl_xlist.h:124:1: warning: inlining failed in call to
'gl_list_add_last_inline': call is unlikely and code size would grow
[-Winline]
src/main.c:176:35: warning: called from here [-Winline]

These are quite reasonable warnings, because the compiler thinks
they're part of my code; but surely gnulib should be treated as system
headers, and -Winline give no warnings. Is there a way to make this
happen?

-- 
http://rrt.sc3d.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]