All shutdown and ready to go....
By user12625760 on Sep 17, 2004
The office move is on, my desktop has been shutdown and is moving as I type. Obviously I'm on a laptop to do this.
Now the type promotion feature has been resolved my port to Amd 64 is nearly done. The surpise has been how many warnings gcc is reporting which the Sun C compiler and lint are happy with, and gcc is happy with in 32 bit land. All are around casting of values so I guess I deserve it. gcc is particularly sensitive to casting types that are smaller than a pointer into a pointer, eg:
char x; char \*p; p = (char \*)x;
Results in the error:
foo.c:10: warning: cast to pointer from integer of different size
Mine are all type int not type char which shows up the problem with a LP64 system but not on an ILP32 system. So I have some work to clean a few of these, up so it will build cleanly both with the Sun C compiler and gcc in both 32 and 64 bit. Nice to see from Google that I am not alone is getting these warnings.