[ovs-git] [openvswitch/ovs] 08ba5f: include: Add struct declaration to ofp-print.h.

GitHub noreply at github.com
Tue Aug 8 23:21:40 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 08ba5f57f1a3305a4eab820c0d70ac7efd127b65
      https://github.com/openvswitch/ovs/commit/08ba5f57f1a3305a4eab820c0d70ac7efd127b65
  Author: Joe Stringer <joe at ovn.org>
  Date:   2017-08-08 (Tue, 08 Aug 2017)

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

  Log Message:
  -----------
  include: Add struct declaration to ofp-print.h.

If a libopenvswitch user includes ofp-print.h before ofp-util.h (which
is standard alphabetical order), and turns on -Werror, then they would
hit this compilation error in the include:

error: 'struct ofputil_port_map' declared inside parameter list will not
be visible outside of this definition or declaration [-Werror]
 void ofp_print(FILE *, const void *, size_t *, const struct ofputil_port_map *,

Fixes: 50f96b10e1c8 ("Support accepting and displaying port names in OVS tools.")
Signed-off-by: Joe Stringer <joe at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list