Skip site navigation (1)Skip section navigation (2)
Date:      06 Nov 2001 10:46:02 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        David Malone <dwmalone@maths.tcd.ie>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.bin/cmp Makefile
Message-ID:  <xzpg07sb5b9.fsf@flood.ping.uio.no>
In-Reply-To: <20011106094225.A80593@walton.maths.tcd.ie>
References:  <200111060932.aa61827@salmon.maths.tcd.ie> <xzpk7x4b5la.fsf@flood.ping.uio.no> <20011106094225.A80593@walton.maths.tcd.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
David Malone <dwmalone@maths.tcd.ie> writes:
> On Tue, Nov 06, 2001 at 10:40:01AM +0100, Dag-Erling Smorgrav wrote:
> > I don't understand - I have no trouble at all building cmp(1) at WARNS
> > level 2.  And if %qd bothers you, use PRIuMAX and a cast to uintmax_t.
> I must have been testing it with -Wall and WARNS=2.

Well yes, -Wall is part of WARNS=2:

des@des /usr/src/usr.bin/cmp% uname -a
FreeBSD des.thinksec.com 5.0-CURRENT FreeBSD 5.0-CURRENT #117: Sat Nov  3 19:09:28 CET 2001     des@des.thinksec.com:/usr/src/sys/i386/compile/DES  i386
des@des /usr/src/usr.bin/cmp% which gcc
/usr/bin/gcc
des@des /usr/src/usr.bin/cmp% gcc --version
2.95.3
des@des /usr/src/usr.bin/cmp% make cleandir && make cleandir && make depend && make
rm -f cmp cmp.o misc.o regular.o special.o cmp.1.gz cmp.1.cat.gz
rm -f .depend /usr/src/usr.bin/cmp/GPATH /usr/src/usr.bin/cmp/GRTAGS  /usr/src/usr.bin/cmp/GSYMS /usr/src/usr.bin/cmp/GTAGS
rm -f cmp cmp.o misc.o regular.o special.o cmp.1.gz cmp.1.cat.gz
rm -f .depend /usr/src/usr.bin/cmp/GPATH /usr/src/usr.bin/cmp/GRTAGS  /usr/src/usr.bin/cmp/GSYMS /usr/src/usr.bin/cmp/GTAGS
rm -f .depend
mkdep -f .depend -a      cmp.c misc.c regular.c special.c
cd /usr/src/usr.bin/cmp; make _EXTRADEPEND
echo cmp: /usr/lib/libc.a  >> .depend
Warning: Object directory not changed from original /usr/src/usr.bin/cmp
cc -O -pipe -march=k6   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow  -c cmp.c
cc -O -pipe -march=k6   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow  -c misc.c
cc -O -pipe -march=k6   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow  -c regular.c
cc -O -pipe -march=k6   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow  -c special.c
cc -O -pipe -march=k6   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow   -o cmp cmp.o misc.o regular.o special.o
gzip -cn cmp.1 > cmp.1.gz

Maybe you threw -pedantic into the fray or something?

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

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?xzpg07sb5b9.fsf>