Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: <Paul_Koning@Dell.com>
To: <howarth.mailing.lists@gmail.com>
Cc: <palves@redhat.com>, <gdb@sourceware.org>
Subject: Re: many unused function warnings in gdb 7.9 on darwin
Date: Thu, 26 Feb 2015 20:21:00 -0000	[thread overview]
Message-ID: <024299DE-C682-4DB4-B1A1-FCF89C969C27@dell.com> (raw)
In-Reply-To: <CADtEn-1SF9Q_XE+wTwjpB-Zny4UEU5kCiPcXnUjf-8X4hmfd+A@mail.gmail.com>


> 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


  reply	other threads:[~2015-02-26 19:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-24 16:33 Jack Howarth
2015-02-26 16:48 ` Pedro Alves
2015-02-26 17:03   ` Jack Howarth
2015-02-26 19:59     ` Jack Howarth
2015-02-26 20:21       ` Paul_Koning [this message]
2015-02-27  9:13         ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=024299DE-C682-4DB4-B1A1-FCF89C969C27@dell.com \
    --to=paul_koning@dell.com \
    --cc=gdb@sourceware.org \
    --cc=howarth.mailing.lists@gmail.com \
    --cc=palves@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox