public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: Anthony Foiani <tkil@scrye.com>
Cc: gcc-help <gcc-help@gcc.gnu.org>
Subject: Re: -Wold-style-casts and system headers
Date: Tue, 18 Jun 2013 16:42:00 -0000	[thread overview]
Message-ID: <CAH6eHdT2KenM9yq5zE_7WdoHmtbpSX08VpefK84dCi_staD7Aw@mail.gmail.com> (raw)
In-Reply-To: <gip1b5rbb.fsf@dworkin.scrye.com>

On 18 June 2013 17:14, Anthony Foiani wrote:
>
>
> I'm aware that I can disable that warning for the single file, or even
> for a single region in the file using pragmas, but I would like to
> understand why g++ isn't applying the "system header" rule to that
> macro.

It's because the expansion of the macro is in your code, not in a system header.

There are some open bug reports on similar subjects
e.g.http://gcc.gnu.org/bugzilla/show_bug.cgi?id=7263#c8

  reply	other threads:[~2013-06-18 16:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-18 16:14 Anthony Foiani
2013-06-18 16:42 ` Jonathan Wakely [this message]
2013-06-18 16:57   ` Anthony Foiani
2013-06-18 17:02     ` Anthony Foiani

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=CAH6eHdT2KenM9yq5zE_7WdoHmtbpSX08VpefK84dCi_staD7Aw@mail.gmail.com \
    --to=jwakely.gcc@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=tkil@scrye.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).