[ovs-git] [openvswitch/ovs] 2f4aba: ovs-ofctl: Workaround a compiler warning on MSVC.

GitHub noreply at github.com
Thu Sep 11 20:17:42 UTC 2014


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 2f4aba0ba6172e210511c9f6cafaac3a2366952e
      https://github.com/openvswitch/ovs/commit/2f4aba0ba6172e210511c9f6cafaac3a2366952e
  Author: Gurucharan Shetty <gshetty at nicira.com>
  Date:   2014-09-11 (Thu, 11 Sep 2014)

  Changed paths:
    M utilities/ovs-ofctl.c

  Log Message:
  -----------
  ovs-ofctl: Workaround a compiler warning on MSVC.

MSVC complains about a void function returning a value if there is a
statement of the form - 'return foo()' even if foo() has a void return
type.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
Acked-by: Ben Pfaff <blp at nicira.com>


  Commit: 5df26bd0e9c91bccd2e12f84fe08dbe37f8de362
      https://github.com/openvswitch/ovs/commit/5df26bd0e9c91bccd2e12f84fe08dbe37f8de362
  Author: Gurucharan Shetty <gshetty at nicira.com>
  Date:   2014-09-11 (Thu, 11 Sep 2014)

  Changed paths:
    M lib/hash.h

  Log Message:
  -----------
  hash.h: Avoid compiler warnings with MSVC.

The lack of 'const' in function declaration causes MSVC to complain
because the function definition uses it.

Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
Acked-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
Acked-by: Ben Pfaff <blp at nicira.com>


Compare: https://github.com/openvswitch/ovs/compare/ecc3c395b5a6...5df26bd0e9c9


More information about the git mailing list