Fw: [IRCServices Coding] Alpha compile error

Ben Goldstein beng at nc.rr.com
Fri Dec 14 14:37:40 PST 2001


I don't know if Andrew meant to send this here, but it might be helpful for
others.  When I compiled I omitted the line completely to supress the error.

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

----- Original Message -----
From: "Andrew Church" <achurch at achurch.org>
To: <beng at nc.rr.com>
Sent: Thursday, December 13, 2001 9:04 PM
Subject: Re: [IRCServices Coding] Alpha compile error


> >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.
>
>      Actually, it is, but it looks like it's not portable; I'll make a
> workaround for the next release.  In the meantime, either use Linux or
just
> remove the "- (-timezone)" (it's code for a case that should never happen
> anyway, so it shouldn't matter too much).
>
>   --Andrew Church
>     achurch at achurch.org
>     http://achurch.org/
>
> >-- Ben Goldstein (beng at nc.rr.com)