Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jul 2002 19:56:54 +1000 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Dag-Erling Smorgrav <des@ofug.org>
Cc:        Alfred Perlstein <alfred@FreeBSD.org>, <cvs-committers@FreeBSD.org>, <cvs-all@FreeBSD.org>
Subject:   Re: cvs commit: src/usr.bin/tail Makefile tail.c
Message-ID:  <20020715195202.G39908-100000@gamplex.bde.org>
In-Reply-To: <xzpznwt9z21.fsf@flood.ping.uio.no>

next in thread | previous in thread | raw e-mail | index | archive | help
On 15 Jul 2002, Dag-Erling Smorgrav wrote:

> Alfred Perlstein <alfred@FreeBSD.org> writes:
> >   Log:
> >   WARNS=4, add
>
> ===> usr.bin/tail
> cc -O -pipe -mcpu=ev56   -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wno-uninitialized  -c /usr/src/usr.bin/tail/forward.c
> cc -O -pipe -mcpu=ev56   -Werror -Wall -Wno-format-y2k -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wno-uninitialized  -c /usr/src/usr.bin/tail/misc.c
> cc1: warnings being treated as errors
> /usr/src/usr.bin/tail/misc.c: In function `mapprint':
> /usr/src/usr.bin/tail/misc.c:84: warning: comparison between signed and unsigned
> /usr/src/usr.bin/tail/misc.c: In function `maparound':
> /usr/src/usr.bin/tail/misc.c:114: warning: comparison between signed and unsigned
> *** Error code 1
>
> Stop in /usr/src/usr.bin/tail.

The commit log "clearly" promises to add warnings :-).

There are only warnings on (most) arches where sizeof(size_t) >= sizeof(off_t)
([no] thanks to ISO C's sign-clobbering promotion rules).

Bruce


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?20020715195202.G39908-100000>