On Thu 05 May 2005 at 15:10:31 +0200, Richard Levitte - VMS Whacker wrote: > Which gcc and what are your default options? I didn't get any > warnings about that. Either way, thanks for the patch, I just applied > it.
gcc -v tells me: Using built-in specs. Configured with: /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure --enable-long-long --disable-multilib --enable-threads --disable-symvers --build=i386-unknown-netbsdelf --host=alpha--netbsd --target=alpha--netbsd Thread model: posix gcc version 3.3.3 (NetBSD nb3 20040520) These are the options (and the warnings): cc -O2 -I/usr/pkg/include -I/usr/pkg/include -I/usr/X11R6/include -DCSRG_BASED -DFUNCPROTO=15 -DNARROWPROTO -DUSEM4 -DGNOME -DXPM -DJPEG -DX11R6 -DI18N -I/usr/pkg/include -I/usr/X11R6/include -c add_window.c add_window.c: In function `AddWindow': add_window.c:399: warning: cast from pointer to integer of different size add_window.c:416: warning: cast from pointer to integer of different size add_window.c:420: warning: cast from pointer to integer of different size I think I see the warnings because pointer and integer are actually of different size on the Alpha (64 bits). I don't see the warnings on my laptop, which is a 32 bit processor. > It's probably old history, and might even come all the way from twm... I expect so. I browsed through cvs and these casts were already present in the first version of the file (1.1). However some of them were removed in revision 1.2, among lots of other changes (the log message says that those are all changes Claude had done since version 3.6). These were the last of those casts remaining. I didn't look into it in more detail. > Richard -Olaf. -- ___ Olaf 'Rhialto' Seibert -- rhialto/at/falu.nl \X/ Hi! I'm a signature virus! Copy me to your .signature to help me spread!
