32-bit compile warning
Zach Brown
zach.brown at oracle.com
Thu Apr 3 16:19:43 PDT 2008
Alex Chiang wrote:
> * Brandon Philips <brandon at ifup.org>:
>> Hello-
>>
>> I am unsure of how to fix up the casting to make GCC quiet on this one.
>>
>> CC [M] /home/philips/projects/crfs/lk/super.o
>> /home/philips/projects/crfs/lk/super.c: In function ???crfs_fill_super???:
>> /home/philips/projects/crfs/lk/super.c:113: warning: cast to pointer from integer of different size
>
> Hrm, that looks a little scary. Casting a 64 bit pointer to a 32
> bit value?
Yeah. Using a fixed-width field for the pointer avoids having to deal
with compat junk that would be needed if we had a raw pointer in there.
Brandon, how about throwing a (long) in there?
- z
More information about the crfs-devel
mailing list