Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Sep 2003 11:32:34 -0400
From:      Guy Middleton <guy@obstruction.com>
To:        freebsd-questions@FreeBSD.ORg
Subject:   g++ -pedantic errors on include files
Message-ID:  <20030919153234.GA28576@chaos.obstruction.com>

next in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030919153234.GA28576>