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,
[EMAIL PROTECTED]           Sunbay Software AG,
[EMAIL PROTECTED]          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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to