[Top][All Lists]

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

Re: _GL_INLINE issue

From: Ben Pfaff
Subject: Re: _GL_INLINE issue
Date: Fri, 13 Apr 2018 07:28:45 -0700
User-agent: Mutt/1.5.23 (2014-03-12)

On Fri, Apr 13, 2018 at 04:03:45PM +0200, Bruno Haible wrote:
> By the way, Paul, what is the problem with telling the compiler what to
> 'static inline'? In other words, what was the motivation of changing
> 'static inline' to 'static' - other than "it's not needed" - in the
> 13 patches presented on November 09, 2012 in
> https://lists.gnu.org/archive/html/bug-gnulib/2012-11/ and committed on
> 2012-11-29 ?

For functions defined in .c files, I like to avoid "static inline"
because "inline" prevents the compiler from warning me when a function
is unused, which I often find to be a useful warning.

reply via email to

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