cvs commit: src/sbin/ping6 Makefile ping6.c
Tom Rhodes
trhodes at FreeBSD.org
Sun Jan 9 01:01:01 PST 2005
On Sat, 08 Jan 2005 22:38:13 -0800
Colin Percival <colin.percival at wadham.ox.ac.uk> wrote:
> Tom Rhodes wrote:
> > Modified files:
> > sbin/ping6 Makefile ping6.c
> > Log:
> > Use static const char and bump WARNS.
>
> Judging by the latest tinderbox build, it looks like you
> need to replace "size_t" with "socklen_t" at line 1772 of
> ping6.c before setting WARNS=6.
But I only bumped it to two.
But with that change, I get this on my p4:
%make WARNS=6
Warning: Object directory not changed from original /usr/home/trhodes/work/curr
nt/src/sbin/ping6
cc -O -pipe -march=pentium4 -DINET6 -DIPSEC -DKAME_SCOPEID -DUSE_RFC2292BIS -D
AVE_POLL_H -DHAVE_ARC4RANDOM -Wsystem-headers -Werror -Wall -Wno-format-y2k -W
Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qu
l -Wwrite-strings -Wswitch -Wshadow -Wcast-align -Wchar-subscripts -Winline -Wn
sted-externs -Wredundant-decls -c ping6.c
ping6.c: In function `main':
ping6.c:398: warning: comparison between signed and unsigned
ping6.c:694: warning: comparison between signed and unsigned
ping6.c:726: warning: comparison between signed and unsigned
ping6.c: In function `dnsdecode':
ping6.c:1432: warning: comparison between signed and unsigned
ping6.c: In function `pr_pack':
ping6.c:1490: warning: comparison between signed and unsigned
ping6.c: At top level:
ping6.c:2172: warning: unused parameter 'notused'
ping6.c: In function `pr_retip':
ping6.c:2525: warning: comparison between signed and unsigned
ping6.c: In function `fill':
ping6.c:2619: warning: comparison between signed and unsigned
ping6.c: At top level:
ping6.c:2635: warning: unused parameter 'so'
*** Error code 1
Stop in /usr/home/trhodes/work/current/src/sbin/ping6.
Looks like just that change doesn't make it WARNS=6 clean. :)
--
Tom Rhodes
More information about the cvs-src
mailing list