From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 25 17:30:31 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4986106564A; Thu, 25 Mar 2010 17:30:31 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 117018FC1A; Thu, 25 Mar 2010 17:30:30 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so646435eyd.9 for ; Thu, 25 Mar 2010 10:30:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=wO1MCFAFV2YHxyzEurZCiLSrunlip8Icf1IYdkMrtps=; b=IBi5UxqiX6Si8o7Q0OjzAyfzHIJZop3eY7X1rwG75U3dPhdfNOrX9Jaq8FPiC3Pht6 FuAYtrkRmwikTHFIj+wUZrQNVauFmvx1uR1IkNrrtDtkh6GfkO5c9JmOiuGDI+BFj50A 90OE1fkpuvxMU6wF1DNiGsXw6dDif5U7uER3c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=u9g6VGwyZpSCiZO+ts/oHhMZMqFNjiKn1FoQgP8KVjilmGMUHBX7Ek02NujhoJUT4V +k7jRaI2GXrvBNFmeeVg9YG6IGyp8QtugvJQV2otiLeVuL5uWfbgzrbcaBlbV5bnCzeq Xh3amwDuZK9zmDcIvLuPib5gWDXgYA9fmi6aU= MIME-Version: 1.0 Received: by 10.213.55.79 with SMTP id t15mr2737421ebg.19.1269538229902; Thu, 25 Mar 2010 10:30:29 -0700 (PDT) In-Reply-To: <9884b5281003251018g2599bfc9nec53b84253372e42@mail.gmail.com> References: <201003242258.05830.lobo@bsd.com.br> <9884b5281003250924i462eee68uf2a7eba7dd864033@mail.gmail.com> <9884b5281003251018g2599bfc9nec53b84253372e42@mail.gmail.com> Date: Thu, 25 Mar 2010 13:30:29 -0400 Message-ID: From: Ryan Stone To: Mario Lobo Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org, FreeBSD-Questions@freebsd.org Subject: Re: Compiling kernel with gcc43 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2010 17:30:31 -0000 -Wnoerror should disable it, but I don't know enough about the FreeBSD build infrastructure to tell you where it needs to go. Worst comes to worst you can just delete all of the -Werrors. Disabling -Werror will not cause any problems. -Werror means "treat warnings as errors". It's very useful for development but in your case, where you're starting with a known good source tree with no warnings with earlier compilers, it's not necessary to have the option enabled. If the warnings are pointing to legitimate bugs, those bugs also exist in a kernel built by gcc 4.2, so your kernel can't be any worse than what you already have.