bug-gnulib
[Top][All Lists]
Advanced

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

Re: -Winline generates warnings against gnulib code


From: Bruno Haible
Subject: Re: -Winline generates warnings against gnulib code
Date: Mon, 09 Jul 2012 17:03:31 +0200
User-agent: KMail/4.7.4 (Linux/3.1.10-1.9-desktop; KDE/4.7.4; x86_64; ; )

Reuben Thomas wrote:
> 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

Formally, this looks like a warning. Semantically, it is merely an
informative diagnostic of the compiler. You are asking the compiler
"tell me about all your decisions whether to inline calls or not",
and the compiler tells you.

IMO, this diagnostic is worth turning on once a year only, and keep it off
most of the time.

Bruno




reply via email to

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