[coreboot] Compiling flashrom on x86_64

Sergei Antonov saproj at gmail.com
Wed Jul 9 08:30:48 CEST 2008


Hi!
Flashrom fails to compile on x86_64 with these errors:
cc1: warnings being treated as errors
layout.c: In function 'show_id':
layout.c:68: warning: cast from pointer to integer of different size
layout.c:70: warning: cast from pointer to integer of different size

The corresponding lines of code:
68:		(!isprint((const char *)(bios + size - *(walk - 1))) &&
69:		((const char *)(bios + size - *(walk - 1)))) ||
70:		(!isprint((const char *)(bios + size - *(walk - 2))) &&
71:		((const char *)(bios + size - *(walk - 2))))) {

Can someone check-in a fix? (Indirection omitted?)

-- 
Sergei




More information about the coreboot mailing list