gcc 2.9 Warnings

From: Chuck Carson (chuck@EDEN.COM)
Date: 06/16/98


I recently ported my mud to a 533 mhz Aplha running
Red Hat 5.1. My code was what I consider very tight
and bug free. I immediately got a ration of warnings
from the compiler. I ran the mud and started jacking
with stuff and could cause no crashes.

Here is what gcc -v says:
Reading specs from /usr/lib/gcc-lib/alpha-linux/egcs-2.90.29/specs
gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

Here are a few of the warnings:

comm.c:934:warning comparison is always zero  (never got this before but
it is obvious)
olc.c:32:warning: type defaults to 'int' in declaration of 'zedit_setup'

Do I need to worry about these?? olc.c is untouched by my hands and is
stock
version 1.6b

Hmmm. Now sfter looking at this further...

I am comparing two PRF_FLAGS,

if (PRF_FLAGGED(ch, PRF_DISP_MOVE) && PRF_FLAGGED(ch, PRF_DISP_MAXMOVE))
blah....

PRF_DISP_MAXMOVE is (1 << 31)


Odd,

I also have a flag PRF_DISP_MAXMANA that is (1 << 32) and it didn't
produce any
warnings and works fine.

Anyone have any experinces with the alphas and gcc 2.9??

Thanks,
Chuck


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST