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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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: > > 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. > > 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. > 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: > > NO_WERROR=true > True. ;) > In addition, for kernel builds, it appears that it is necessary to > define: > > WERROR=-Wno-error > Or just define it to an empty value. Cheers, -- Ruslan Ermilov ru@FreeBSD.org FreeBSD committer [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBkIXIqRfpzJluFF4RAvCuAJ42efhpfATEpTdRtd++LyUHtMII6wCeLx5d zTZr7Zc0lxKSg5jYrszY71U= =4oYL -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041109085432.GB43113>
