Date: Tue, 9 Nov 2004 10:54:32 +0200 From: Ruslan Ermilov <ru@freebsd.org> To: "Conrad J. Sabatier" <conrads@cox.net> Cc: freebsd-current@freebsd.org Subject: Re: NO_WERROR: correct usage? Message-ID: <20041109085432.GB43113@ip.net.ua> In-Reply-To: <20041108223815.517366ea@dolphin.local.net> References: <20041108223815.517366ea@dolphin.local.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--0ntfKIWw70PvrIHh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 08, 2004 at 10:38:15PM -0600, Conrad J. Sabatier wrote: > The description in /usr/src/UPDATING re: the use of NO_WERROR seems to > be incorrect: >=20 > 20020815: > A "bug" in gcc(1) that was hiding warning in system headers was > fixed. It's probably time to add -DNO_WERROR to your make line > again. >=20 > Adding "-DNO_WERROR" to CFLAGS in /etc/make.conf seems to have no > effect; the "-Werror" switch still gets added at certain places during > the build. >=20 The above does NOT say you should be adding -DNO_WERROR to CFLAGS, it says you should add it "to your make line", e.g.: make buildworld -DNO_WERROR > On the other hand, defining NO_WERROR as a make variable in > /etc/make.conf does seem to work, like so: >=20 > NO_WERROR=3Dtrue >=20 True. ;) > In addition, for kernel builds, it appears that it is necessary to=20 > define: >=20 > WERROR=3D-Wno-error=20 >=20 Or just define it to an empty value. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --0ntfKIWw70PvrIHh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBkIXIqRfpzJluFF4RAvCuAJ42efhpfATEpTdRtd++LyUHtMII6wCeLx5d zTZr7Zc0lxKSg5jYrszY71U= =4oYL -----END PGP SIGNATURE----- --0ntfKIWw70PvrIHh--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041109085432.GB43113>