From owner-freebsd-current@FreeBSD.ORG Sat May 25 10:14:09 2013 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 844FD73C for ; Sat, 25 May 2013 10:14:09 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.lysator.liu.se (mail.lysator.liu.se [IPv6:2001:6b0:17:f0a0::3]) by mx1.freebsd.org (Postfix) with ESMTP id 301C59F7 for ; Sat, 25 May 2013 10:14:09 +0000 (UTC) Received: from mail.lysator.liu.se (localhost [127.0.0.1]) by mail.lysator.liu.se (Postfix) with ESMTP id CA7874000C for ; Sat, 25 May 2013 12:14:06 +0200 (CEST) Received: by mail.lysator.liu.se (Postfix, from userid 1004) id BFB6B4000B; Sat, 25 May 2013 12:14:06 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on bernadotte.lysator.liu.se X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.3.1 X-Spam-Score: 0.0 Received: from mx.daemonic.se (mx.daemonic.se [IPv6:2001:470:dca9:0:1::3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.lysator.liu.se (Postfix) with ESMTPSA id 8697040004; Sat, 25 May 2013 12:14:06 +0200 (CEST) Received: from mailscanner.daemonic.se (mailscanner.daemonic.se [IPv6:2001:470:dca9:0:1::6]) by mx.daemonic.se (Postfix) with ESMTPS id 3bHgKB0ndlz8hVn; Sat, 25 May 2013 12:14:06 +0200 (CEST) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mx.daemonic.se ([10.1.0.3]) (using TLS with cipher CAMELLIA256-SHA) by mailscanner.daemonic.se (mailscanner.daemonic.se [10.1.0.6]) (amavisd-new, port 10025) with ESMTPS id exg2ahcCTVBB; Sat, 25 May 2013 12:14:03 +0200 (CEST) Received: from mail.daemonic.se (mail.daemonic.se [10.1.0.4]) by mx.daemonic.se (Postfix) with ESMTPS id 3bHgK71ZlGz8hVm; Sat, 25 May 2013 12:14:03 +0200 (CEST) Received: from vivi.daemonic.se (vivi.daemonic.se [10.32.0.4]) by mail.daemonic.se (Postfix) with ESMTPSA id 3bHgK70mp2z9Ctq; Sat, 25 May 2013 12:14:03 +0200 (CEST) Message-ID: <51A08EEB.9070201@daemonic.se> Date: Sat, 25 May 2013 12:14:03 +0200 From: Niclas Zeising User-Agent: Mutt/1.5.21 MIME-Version: 1.0 To: "O. Hartmann" Subject: Re: error: unknown warning group '-Wcpp', ignored (#pragma GCC) References: <1369476551.1618.42.camel@thor.walstatt.dyndns.org> In-Reply-To: <1369476551.1618.42.camel@thor.walstatt.dyndns.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 May 2013 10:14:09 -0000 On 05/25/13 12:09, O. Hartmann wrote: > With CLANG on FreeBSD 10.0-CURRENT r250968, I get this error message in > a source I try to port. > > I did not find any suitable "official" workaround and I'd like to avoid > patching all files containing those #pragma statements. Is there a > geenral solution on FreeBSD to overcome this? > > error: unknown warning group '-Wcpp', ignored > [-Werror,-Wunknown-pragmas] > # pragma GCC diagnostic ignored "-Wcpp" > You could always remove -Werror or -Wunknown-pragmas from CFLAGS. Or add -Wno-unknown-pragmas if -Wunknown-pragmas is turned on by -Wall or something like that. Regards! -- Niclas