examples/ip_pipeline: fix strict-aliasing
authorMichael Qiu <michael.qiu@intel.com>
Wed, 9 Dec 2015 08:44:26 +0000 (16:44 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 9 Dec 2015 21:02:33 +0000 (22:02 +0100)
commite281a8b610c329d3e62c44f5b7c4be3ce47897bb
treefe3e33a53308e94d6927458880cd696177a7c39b
parent91e25dc5b527eced759926bc3296fb7047970f92
examples/ip_pipeline: fix strict-aliasing

Compile ip_pipeline in CentOS 6.5 with kernel 2.6.32-431
GCC 4.4.7, will lead below error:

    pipeline_routing_be.c: In function ‘pipeline_routing_msg_req_arp_add_handler’:
    pipeline_routing_be.c:1817: error: dereferencing pointer ‘({anonymous})’
does break strict-aliasing rules

This because the code break strict-aliasing rule.
The patch solve this issue.

Fixes: 0ae7275810f1 (examples/ip_pipeline: add more functions to routing pipeline)

Signed-off-by: Michael Qiu <michael.qiu@intel.com>
Acked-by: Jasvinder Singh <jasvinder.singh@intel.com>
examples/ip_pipeline/pipeline/pipeline_routing_be.c