Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jun 2002 16:53:59 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: FILTERED: cvs commit: src/bin/date netdate.c
Message-ID:  <20020609135358.GA18534@hades.hell.gr>
In-Reply-To: <xzpk7p8h94c.fsf@flood.ping.uio.no>
References:  <20020609041851.7C84337B410@hub.freebsd.org> <20020609042817.GC98441@hades.hell.gr> <xzpk7p8h94c.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2002-06-09 15:30 +0200, Dag-Erling Smorgrav wrote:
> Giorgos Keramidas <keramida@FreeBSD.org> writes:
> > Mike has done some testing of this change on sparc64, but if Alpha has
> > problems with this, I will back it out.  I tried testing this on beast
> > but it takes an Alpha machine with -CURRENT to compile bin/date :-/
> 
> beast *is* "an Alpha machine with -CURRENT":
> 
> FreeBSD beast.freebsd.org 5.0-CURRENT FreeBSD 5.0-CURRENT #10: Sat Mar 16 13:34:04 PST 2002     root@beast.freebsd.org:/usr/src/sys/alpha/compile/BEAST  alpha

True.  I found out what caused the weirdnes a short while later.  It
doesn't matter what flags I use in make, a fixed set of warnings is
always enabled.

06:50 [keramida@beast /home/keramida/date]$ make -n WARNS=1 netdate.o
cc -O -pipe -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
-Wcast-qual -Wchar-subscripts -Wconversion -Winline -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow \
-Wstrict-prototypes -Wwrite-strings -mcpu=ev56 \
    -c netdate.c

06:50 [keramida@beast /home/keramida/date]$ make -n WARNS=2 netdate.o
cc -O -pipe -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
-Wcast-qual -Wchar-subscripts -Wconversion -Winline -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow \
-Wstrict-prototypes -Wwrite-strings -mcpu=ev56 \
   -Wall -Wno-format-y2k -Wno-uninitialized  -c netdate.c

06:50 [keramida@beast /home/keramida/date]$ make -n WARNS=3 netdate.o
cc -O -pipe -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \
-Wcast-qual -Wchar-subscripts -Wconversion -Winline -Wmissing-prototypes \
-Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow \
-Wstrict-prototypes -Wwrite-strings -mcpu=ev56 \
   -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes \
  -Wpointer-arith -Wno-uninitialized  -c netdate.c

This makes it hard to check if something fixes the one warning that I wanted to
track down is fixed.  By explicitly setting CFLAGS to the equivalent of WARNS=3
or higher WARNS levels all works like a charm :-/

- Giorgos


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




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