[syslinux] isohybrid.c:409: warning: cast from pointer to integer of different size
Geert Stappers
stappers at stappers.nl
Tue May 4 01:30:19 PDT 2010
Op 20100504 om 12:10 schreef P J P:
> --- On Tue, 4/5/10, Geert Stappers <stappers at stappers.nl> wrote:
> > $ gcc -o isohybrid isohybrid.c isohdpfx.c
> > isohybrid.c: In function display_mbr:
> > isohybrid.c:409: warning: cast from pointer to integer of different size
>
> I'm using gcc (GCC) 4.4.3 20100127 on F12, it doesn't show up here.
> Anyway, I think casting to `intptr_t' instead of `unsigned int' should help.
>
> printf("%08x ", (intptr_t)(mbr + i));
>
Yes, the compile warning is gone.
Stappers
not tested if isohybrid, C version, works correctly
More information about the Syslinux
mailing list