many unused function warnings in gdb 7.9 on darwin
Paul_Koning@Dell.com
Paul_Koning@Dell.com
Thu Feb 26 20:21:00 GMT 2015
> On Feb 26, 2015, at 2:41 PM, Jack Howarth <howarth.mailing.lists@gmail.com> 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
More information about the Gdb
mailing list