[ovs-git] [openvswitch/ovs] 6f6d19: nsh: Fix "shadow" warnings while compiling with cl...

damijans noreply at github.com
Mon Jun 10 00:02:53 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 6f6d19db05ca743d6f294618d2c36b6d0b15e2e2
      https://github.com/openvswitch/ovs/commit/6f6d19db05ca743d6f294618d2c36b6d0b15e2e2
  Author: Damijan Skvarc <damjan.skvarc at gmail.com>
  Date:   2019-06-09 (Sun, 09 Jun 2019)

  Changed paths:
    M include/openvswitch/nsh.h

  Log Message:
  -----------
  nsh: Fix "shadow" warnings while compiling with clang.

Because of the macro implementation of htonX() and ntohX(), using one in
the argument of the other yields warnings.  This commit avoids the issue by
using a temporary variable.

This does not fix a bug, only suppresses a warning.

Submitted-at: https://github.com/openvswitch/ovs/pull/283
Signed-off-by: Damijan Skvarc <damjan.skvarc at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list