From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 13:08:05 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7569106564A for ; Thu, 28 Aug 2008 13:08:05 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirj.bris.ac.uk (dirj.bris.ac.uk [137.222.10.78]) by mx1.freebsd.org (Postfix) with ESMTP id 68D5D8FC20 for ; Thu, 28 Aug 2008 13:08:05 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from seis.bris.ac.uk ([137.222.10.93]) by dirj.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1KYhEG-0002GS-RH; Thu, 28 Aug 2008 14:08:04 +0100 Received: from mech-cluster238.men.bris.ac.uk ([137.222.187.238]) by seis.bris.ac.uk with esmtp (Exim 4.67) (envelope-from ) id 1KYhEG-0005d9-1k; Thu, 28 Aug 2008 14:08:00 +0100 Received: from mech-cluster238.men.bris.ac.uk (localhost.men.bris.ac.uk [127.0.0.1]) by mech-cluster238.men.bris.ac.uk (8.14.2/8.14.2) with ESMTP id m7SD7wLl045427; Thu, 28 Aug 2008 14:07:58 +0100 (BST) (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster238.men.bris.ac.uk (8.14.2/8.14.2/Submit) id m7SD7wll045426; Thu, 28 Aug 2008 14:07:58 +0100 (BST) (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster238.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Thu, 28 Aug 2008 14:07:58 +0100 From: Anton Shterenlikht To: Kris Kennaway Message-ID: <20080828130758.GA45401@mech-cluster238.men.bris.ac.uk> References: <20080828123506.GA41395@mech-cluster238.men.bris.ac.uk> <48B69F6D.7030704@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48B69F6D.7030704@FreeBSD.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam-Score: -1.4 X-Spam-Level: - Cc: Anton Shterenlikht , freebsd-questions@freebsd.org Subject: Re: How to disable "cc1plus: warnings being treated as errors" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Aug 2008 13:08:05 -0000 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 -D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_COM_OBSOLETE -D_IMPL_NS_GFX -D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -DOSTYPE=\"FreeBSD6\" -DOSARCH=FreeBSD -DIMPL_NS_NET -I. -I. -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? thanks anton -- 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