Re: [U-Boot] [PATCH] fsl: Fix compiler warnings from gcc-4.4 in sys_eeprom code

2013-08-30 Thread Timur Tabi
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') || \ > +

[U-Boot] [PATCH] fsl: Fix compiler warnings from gcc-4.4 in sys_eeprom code

2009-07-06 Thread Kumar Gala
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