Re: many unused function warnings in gdb 7.9 on darwin

<[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
> On Feb 26, 2015, at 2:41 PM, Jack Howarth <[email protected]> wrote:
> 
> The clang developers have comments on this issue in
> http://llvm.org/bugs/show_bug.cgi?id=22712#c1. They ask (as I did
> originally) why we aren't wrapping these functions to keep them from
> being declared on darwin if they aren't used.

I can think of a good reason: they are used as cleaner replacements for macros, defined in header files.  So they are used in some files that include those headers, but not others.  That’s why GCC has that rule about not warning if the function is static inline.

	paul
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.