How to disable "cc1plus: warnings being treated as errors"

Anton Shterenlikht mexas at
Thu Aug 28 13:08:05 UTC 2008

On Thu, Aug 28, 2008 at 02:51:57PM +0200, Kris Kennaway wrote:
> Anton Shterenlikht wrote:
> > I'm trying to build a port and get stopped on a warning
> > because
> > 	"cc1plus: warnings being treated as errors"
> > 
> > Even though it is probably there for a reason, I'd like
> > to try to continue with the build. But I cannot see
> > what c++ switch prevents warnings from being treated as
> > errors.
> > 
> > Please advise
> > many thanks
> > 
> It is -Werror.

seems to have no effect here:

# g++42 -o nsCookieService.o -c -fvisibility=hidden -DMOZILLA_INTERNAL_API
-I../../../dist/include/xpcom -I../../../dist/include/string
-I../../../dist/include/pref -I../../../dist/include/storage
-I../../../dist/include -I../../../dist/include/necko
-I/usr/local/include/nspr -I/usr/include -I../../../dist/sdk/include
-I/usr/local/include -fPIC -I/usr/local/include -I/usr/local/include
-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wcast-align -Wno-long-long -Werror -O -pipe -mcpu=ev6 -mieee -O2
-fno-strict-aliasing -fno-strict-aliasing -fshort-wchar -pipe -DNDEBUG
-DTRIMMED -O -Werror -I/usr/local/include -I/usr/local/include
-DMOZILLA_CLIENT -include ../../../mozilla-config.h nsCookieService.cpp
cc1plus: warnings being treated as errors

or is it being overwritten by other -W options?


Anton Shterenlikht
Room 2.6, Queen's Building
Mech Eng Dept
Bristol University
University Walk, Bristol BS8 1TR, UK
Tel: +44 (0)117 928 8233 
Fax: +44 (0)117 929 4423

More information about the freebsd-questions mailing list