Re: [U-Boot] [PATCH] ppc: mpc8323erdb: Fix compiler warning

2013-07-14 Thread Marek Vasut
Hello Wolfgang, > Dear Marek Vasut, > > In message <1373710940-15779-1-git-send-email-ma...@denx.de> you wrote: > > Fix the following warning: > > > > mpc8323erdb.c: In function 'mac_read_from_eeprom': > > mpc8323erdb.c:198:3: warning: dereferencing type-punned pointer will > > break strict-alia

Re: [U-Boot] [PATCH] ppc: mpc8323erdb: Fix compiler warning

2013-07-14 Thread Wolfgang Denk
Dear Marek Vasut, In message <1373710940-15779-1-git-send-email-ma...@denx.de> you wrote: > Fix the following warning: > > mpc8323erdb.c: In function 'mac_read_from_eeprom': > mpc8323erdb.c:198:3: warning: dereferencing type-punned pointer will break > strict-aliasing rules [-Wstrict-aliasing] >

[U-Boot] [PATCH] ppc: mpc8323erdb: Fix compiler warning

2013-07-13 Thread Marek Vasut
Fix the following warning: mpc8323erdb.c: In function 'mac_read_from_eeprom': mpc8323erdb.c:198:3: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] if (crc32(crc, buf, 24) == *(unsigned int *)&buf[24]) { ^ Size remains unchanged after and befo