From owner-cvs-all Sun Jun 9 6:54:13 2002 Delivered-To: cvs-all@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 301DE37B406; Sun, 9 Jun 2002 06:54:07 -0700 (PDT) Received: from hades.hell.gr (patr530-a065.otenet.gr [212.205.215.65]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g59Ds2ZN004149; Sun, 9 Jun 2002 16:54:04 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g59Ds1UP019938; Sun, 9 Jun 2002 16:54:01 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g59Ds1Ea019911; Sun, 9 Jun 2002 16:54:01 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 9 Jun 2002 16:53:59 +0300 From: Giorgos Keramidas To: Dag-Erling Smorgrav 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> References: <20020609041851.7C84337B410@hub.freebsd.org> <20020609042817.GC98441@hades.hell.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-06-09 15:30 +0200, Dag-Erling Smorgrav wrote: > Giorgos Keramidas 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