On Mon, Jul 6, 2009 at 10:11 AM, Kumar Gala wrote:
>
> #ifdef CONFIG_SYS_I2C_EEPROM_NXID
> /* Is this a valid NXID EEPROM? */
> -#define is_valid (*((u32 *)e.id) == (('N' << 24) | ('X' << 16) | ('I' << 8)
> | 'D'))
> +#define is_valid ((e.id[0] == 'N') || (e.id[1] == 'X') || \
> +
sys_eeprom.c: In function 'do_mac':
sys_eeprom.c:323: warning: dereferencing type-punned pointer will break
strict-aliasing rules
sys_eeprom.c: In function 'mac_read_from_eeprom':
sys_eeprom.c:395: warning: dereferencing type-punned pointer will break
strict-aliasing rules
Signed-off-by: Kumar G
2 matches
Mail list logo