From owner-freebsd-questions@FreeBSD.ORG Fri Sep 19 08:33:39 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB4D616A4B3 for ; Fri, 19 Sep 2003 08:33:39 -0700 (PDT) Received: from chaos.obstruction.com (CPE00e018983b2f-CM013349903124.cpe.net.cable.rogers.com [24.156.200.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id C16EF43FAF for ; Fri, 19 Sep 2003 08:33:38 -0700 (PDT) (envelope-from guy-dated-1066577555.db753c@obstruction.com) Received: from chaos.obstruction.com (localhost [127.0.0.1]) by chaos.obstruction.com (Postfix) with ESMTP id 53E1D5C63 for ; Fri, 19 Sep 2003 11:32:35 -0400 (EDT) Received: by chaos.obstruction.com (tmda-sendmail, from uid 1000); Fri, 19 Sep 2003 11:32:35 -0400 (EDT) Date: Fri, 19 Sep 2003 11:32:34 -0400 To: freebsd-questions@FreeBSD.ORg Message-ID: <20030919153234.GA28576@chaos.obstruction.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i From: Guy Middleton X-Delivery-Agent: TMDA/0.80 (Determine) Subject: g++ -pedantic errors on include files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Guy Middleton List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Sep 2003 15:33:39 -0000 On my 5.1-RELEASE system, if I compile a C++ program thus: c++ -O -pipe -march=pentium3 -Wall -W -Wno-long-long -pedantic wchar.cc -o wchar The compiler prints many warnings like this: /usr/include/g++/bits/stl_alloc.h:979: warning: ISO C++ forbids the use of ` extern' on explicit instantiations Is there some way to turn this off? I don't mind getting complaints about my own code, but it's kind of pointless to get warnings about system include files.