From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5747 invoked by alias); 18 Jun 2013 16:42:20 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 5700 invoked by uid 89); 18 Jun 2013 16:42:19 -0000 X-Spam-SWARE-Status: No, score=-3.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-la0-f49.google.com (HELO mail-la0-f49.google.com) (209.85.215.49) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 18 Jun 2013 16:42:18 +0000 Received: by mail-la0-f49.google.com with SMTP id ea20so3700434lab.36 for ; Tue, 18 Jun 2013 09:42:15 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.25.195 with SMTP id e3mr6935708lag.76.1371573735867; Tue, 18 Jun 2013 09:42:15 -0700 (PDT) Received: by 10.112.160.104 with HTTP; Tue, 18 Jun 2013 09:42:15 -0700 (PDT) In-Reply-To: References: Date: Tue, 18 Jun 2013 16:42:00 -0000 Message-ID: Subject: Re: -Wold-style-casts and system headers From: Jonathan Wakely To: Anthony Foiani Cc: gcc-help Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-06/txt/msg00134.txt.bz2 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