[ovs-git] [openvswitch/ovs] 9965bc: ofp-actions: Add casts to placate C++ compilers.

GitHub noreply at github.com
Mon Jul 31 23:04:02 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 9965bc0b10a8c1f911e4bc12f7d0e1e6c4cf8be2
      https://github.com/openvswitch/ovs/commit/9965bc0b10a8c1f911e4bc12f7d0e1e6c4cf8be2
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-07-31 (Mon, 31 Jul 2017)

  Changed paths:
    M include/openvswitch/ofp-actions.h

  Log Message:
  -----------
  ofp-actions: Add casts to placate C++ compilers.

C++ does not allow for an implicit conversion from void * to pointer to
object or incomplete type.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Russell Bryant <russell at ovn.org>


  Commit: 3e892d4396128e27c751c686bb304598f740d197
      https://github.com/openvswitch/ovs/commit/3e892d4396128e27c751c686bb304598f740d197
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-07-31 (Mon, 31 Jul 2017)

  Changed paths:
    M include/openvswitch/util.h

  Log Message:
  -----------
  util: Add C++ compatible definition of PADDED_MEMBERS.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Russell Bryant <russell at ovn.org>


  Commit: 4d617a87ec0be851a5a0d8f7f99ffb237a0ef397
      https://github.com/openvswitch/ovs/commit/4d617a87ec0be851a5a0d8f7f99ffb237a0ef397
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-07-31 (Mon, 31 Jul 2017)

  Changed paths:
    M include/openvswitch/ofp-util.h
    M lib/ofp-print.c
    M lib/ofp-util.c
    M ofproto/connmgr.c
    M ofproto/fail-open.c
    M ofproto/ofproto-dpif-xlate.c
    M ofproto/ofproto-dpif.c

  Log Message:
  -----------
  ofp-util: Avoid C++ keyword 'public' in name of struct member.

This allows a C++ program to include ofp-util.h.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Russell Bryant <russell at ovn.org>


  Commit: 994bfc298502e6f9178dd231c569a6b305a8299f
      https://github.com/openvswitch/ovs/commit/994bfc298502e6f9178dd231c569a6b305a8299f
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-07-31 (Mon, 31 Jul 2017)

  Changed paths:
    M Makefile.am
    M configure.ac
    M include/openflow/openflow-common.h
    M include/openvswitch/automake.mk
    M include/openvswitch/compiler.h
    A m4/ax_cxx_compile_stdcxx.m4
    M m4/openvswitch.m4

  Log Message:
  -----------
  Automatically verify that OVS header files work OK in C++ also.

This should help address a recurring problem.

This change makes the OVS header files, when parsed by a C++ compiler,
require C++11 or later.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Russell Bryant <russell at ovn.org>


  Commit: ec30ca5f1cd44101bc5314e002c1b185ba2d1868
      https://github.com/openvswitch/ovs/commit/ec30ca5f1cd44101bc5314e002c1b185ba2d1868
  Author: Ben Pfaff <blp at ovn.org>
  Date:   2017-07-31 (Mon, 31 Jul 2017)

  Changed paths:
    M include/openvswitch/automake.mk
    M include/openvswitch/dynamic-string.h
    M include/openvswitch/flow.h
    M include/openvswitch/geneve.h
    M include/openvswitch/list.h
    M include/openvswitch/match.h
    M include/openvswitch/meta-flow.h
    M include/openvswitch/netdev.h
    M include/openvswitch/ofp-actions.h
    M include/openvswitch/ofp-errors.h
    M include/openvswitch/ofp-msgs.h
    M include/openvswitch/ofp-parse.h
    M include/openvswitch/ofp-prop.h
    M include/openvswitch/ofp-util.h
    M include/openvswitch/packets.h
    M include/openvswitch/thread.h
    M include/openvswitch/token-bucket.h
    M include/openvswitch/tun-metadata.h
    M include/openvswitch/type-props.h
    M include/openvswitch/types.h
    M include/openvswitch/uuid.h

  Log Message:
  -----------
  Add 'extern "C"' for all relevant public header files, plus a build check.

Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Russell Bryant <russell at ovn.org>


Compare: https://github.com/openvswitch/ovs/compare/af0e97217180...ec30ca5f1cd4


More information about the git mailing list