[dpdk-dev] [PATCH] hash: fix __rte_hash_lookup_bulk return value

Bruce Richardson bruce.richardson at intel.com
Mon Dec 10 11:29:44 CET 2018


On Fri, Dec 07, 2018 at 04:01:26PM -0800, Jeff Shaw wrote:
> The __rte_hash_lookup_bulk() function returns void, and therefore
> should not return with an expression. This commit fixes the following
> compiler warning when attempting to compile with "-pedantic -std=c11".
> 
>   warning: ISO C forbids ‘return’ with expression, in function
>            returning void [-Wpedantic]
> 
> Fixes: 9eca8bd7a61c ("hash: separate lock-free and r/w lock lookup")
> 
> Signed-off-by: Jeff Shaw <jeffrey.b.shaw at intel.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list