[dpdk-dev] [PATCH] test-pmd: Fix pointer aliasing error

2014-12-04 Thread Dayu Qiu
Hi Olivier, You can check gcc manual. -fstrict-aliasing Allow the compiler to assume the strictest aliasing rules applicable to the language being compiled. For C (and C++), this activates optimizations based on the type of expressions. In particular, an object

[dpdk-dev] [PATCH] test-pmd: Fix pointer aliasing error

2014-12-03 Thread Dayu Qiu
Just re-post this mail as Thomas said it missed in mail list. On Wed, Dec 3, 2014 at 7:42 PM, Bruce Richardson wrote: > On Wed, Dec 03, 2014 at 07:28:19PM +0800, Michael Qiu wrote: > > app/test-pmd/csumonly.c: In function ?get_psd_sum?: > > build/include/rte_ip.h:161: error: dereferencing pointe