[ovs-dev] [PATCH] lldp: Fix clang warning.

Ben Pfaff blp at nicira.com
Thu May 7 19:44:57 UTC 2015


On Wed, May 06, 2015 at 02:41:23PM -0700, Joe Stringer wrote:
> Clang-3.7 generates warnings such as the following:
> ../lib/ovs-lldp.c:394:19: error: address of array 'hardware->h_ifname'
> will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion]
> 
> This value is fetched from a netdev, which as far as I can tell must
> always have a non-NULL name. Simplify this code.
> 
> Signed-off-by: Joe Stringer <joestringer at nicira.com>

Acked-by: Ben Pfaff <blp at nicira.com>



More information about the dev mailing list