Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2001 21:26:28 +0300
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        current@FreeBSD.org
Subject:   ** HEADS UP **: -nostdinc -Wfoo ==> -DNO_WERROR is temporarily the default for `buildworld'
Message-ID:  <20010611212628.A37954@sunbay.com>

next in thread | raw e-mail | index | archive | help
Hi!

-DNO_WERROR (which effectively disables the -Werror) is temporarily
the default for `buildworld' because restored -nostdinc bit affects
the gcc(1) warning produced for /usr/include headers.
(See Makefile.inc1,v 1.203.)

For example, if run with -nostdinc, bin/chmod bombs with the following:

: Warning: Object directory not changed from original /home/ru/1/chmod
: cc -O -pipe   -nostdinc -I/usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow  -c chmod.c
: cc1: warnings being treated as errors
: In file included from chmod.c:53:
: /usr/include/fts.h:48: warning: function declaration isn't a prototype
: *** Error code 1
: 
: Stop in /home/ru/1/chmod.

While this is definitely a problem in fts.h, which is fixed with the
attached patch, it is unclear why this warning is hidden after the
-nostdinc.

PLEASE DON'T FIX THE HEADERS UNTIL WE FIGURE OUT WHY THIS IS HIDDEN
AFTER -nostdinc.


Cheers,
-- 
Ruslan Ermilov		Oracle Developer/DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010611212628.A37954>