[IRCServices Coding] Alpha compile error

Ben Goldstein beng at nc.rr.com
Thu Dec 13 15:04:37 PST 2001


gcc -DCLEAN_COMPILE -O2 -Wall -Wmissing-prototypes -g -I../.. -c set.c -o
set.o
set.c: In function `do_set_timezone':
set.c:487: wrong type argument to unary minus
set.c:447: warning: `j' might be used uninitialized in this function

487:        j = ngi->timezone*60 - (-timezone);

I'm not sure what this is even doing, I havn't dug into the code.  But it
doesn't seem that "timezone" alone is the correct var you meant to use here.

-- Ben Goldstein (beng at nc.rr.com)

bash-2.05$ uname -a
FreeBSD raider 4.4-20010827-RC2 FreeBSD 4.4-20010827-RC2 #4: Fri Nov 16
14:57:04 EST 2001     root at raider:/usr/obj/usr/src/sys/BG1  i386
bash-2.05$ gmake -ver
GNU Make version 3.79, by Richard Stallman and Roland McGrath.
Built for i386-unknown-freebsdelf4.4
Copyright (C) 1988, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99
        Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Report bugs to <bug-make at gnu.org>.