[Top][All Lists]

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

Re: avoiding 'static inline'

From: Paul Eggert
Subject: Re: avoiding 'static inline'
Date: Sun, 19 Aug 2012 10:34:55 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0

On 08/18/2012 10:04 PM, Ben Pfaff wrote:
> I see that some of your patches remove "inline" from some "static
> inline" functions in header files, but I don't see anything
> added, such as __attribute__((unused)), that would suppress an
> "unused static function" warning.  (Perhaps I just missed it.)

Thanks for bringing that up.  I didn't observe those warnings
even when configuring with --enable-gcc-warnings.  I just now
looked into matter and it turns out that the warnings are
suppressed by the "#pragma GCC system_header" at the start of
all the files that contain the patches you're referring to.
So we should be OK.

For headers that are not system headers, I plan to use
_GL_INLINE, which addresses the problem in a different way.

reply via email to

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