[ovs-git] [openvswitch/ovs] 6b6b50: ovs build: Fix memset with zero size warning.

GitHub noreply at github.com
Sat Apr 15 04:18:26 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 6b6b508b8354a7b599c983ec61651c2f1ee0a269
      https://github.com/openvswitch/ovs/commit/6b6b508b8354a7b599c983ec61651c2f1ee0a269
  Author: Darrell Ball <dlu998 at gmail.com>
  Date:   2017-04-14 (Fri, 14 Apr 2017)

  Changed paths:
    M lib/flow.c

  Log Message:
  -----------
  ovs build: Fix memset with zero size warning.

In file included from /usr/include/string.h:640:0,
           from ./lib/string.h:20,
           from /usr/include/netinet/icmp6.h:22,
           from ../lib/flow.h:21,
           from ../lib/flow.c:18:
In function 'memset',
    inlined from 'flow_push_vlan_uninit' at ../lib/flow.c:2188:19:
/usr/include/x86_64-linux-gnu/bits/string3.h:81:30: error:
call to '__warn_memset_zero_len' declared with attribute warning:
memset used with constant zero length parameter; this could be
due to transposed parameters [-Werror]
       __warn_memset_zero_len ();
                        ^
cc1: all warnings being treated as errors
make[2]: *** [lib/flow.lo] Error 1

Fixes: f0fb825a3785 ("Add support for 802.1ad (QinQ tunneling)")
Signed-off-by: Darrell Ball <dlu998 at gmail.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list