Re: [dpdk-dev] [PATCH v3 1/4] net/bnx2x: do not cast function pointers as a policy

2018-05-15 Thread Mody, Rasesh
> From: dev [mailto:dev-boun...@dpdk.org] On Behalf Of Andy Green > Sent: Sunday, May 13, 2018 10:04 PM > > This is stopping the compiler telling you when you have done something > stupid... that is something none of us can afford... > > Now gcc 8.x can tell you did something stupid despite tryin

[dpdk-dev] [PATCH v3 1/4] net/bnx2x: do not cast function pointers as a policy

2018-05-13 Thread Andy Green
This is stopping the compiler telling you when you have done something stupid... that is something none of us can afford... Now gcc 8.x can tell you did something stupid despite trying to hide the evidence. Remove all the "black magic" casts. Fix the actual problems. Signed-off-by: Andy Green