This is the mail archive of the
mailing list for the GDB project.
Re: many unused function warnings in gdb 7.9 on darwin
- From: <Paul_Koning at Dell dot com>
- To: <howarth dot mailing dot lists at gmail dot com>
- Cc: <palves at redhat dot com>, <gdb at sourceware dot org>
- Date: Thu, 26 Feb 2015 19:55:06 +0000
- Subject: Re: many unused function warnings in gdb 7.9 on darwin
- Authentication-results: sourceware.org; auth=none
- References: <CADtEn-0a2XqyNySrYL-OrC=yYvBs_uuVFNnJE5KdHt_-7FHsaA at mail dot gmail dot com> <54EEF2D4 dot 2000602 at redhat dot com> <CADtEn-3Bg+ByB0bWyBodqa6V8QwHCoYsoFY_Eemmh0nNAwwLgw at mail dot gmail dot com> <CADtEn-1SF9Q_XE+wTwjpB-Zny4UEU5kCiPcXnUjf-8X4hmfd+A at mail dot gmail dot com>
> On Feb 26, 2015, at 2:41 PM, Jack Howarth <email@example.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.