[ovs-git] [openvswitch/ovs] e32c1f: list.h: Define OVS_LIST_POISON statically

GitHub noreply at github.com
Mon Mar 21 16:17:31 UTC 2016


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: e32c1f7c0d65fe0ab99b61654ba0df393c42b88f
      https://github.com/openvswitch/ovs/commit/e32c1f7c0d65fe0ab99b61654ba0df393c42b88f
  Author: Nithin Raju <nithin at vmware.com>
  Date:   2016-03-21 (Mon, 21 Mar 2016)

  Changed paths:
    M lib/list.h

  Log Message:
  -----------
  list.h: Define OVS_LIST_POISON statically

The previous definitions of these variables using designated
initializers caused a variety of issues when attempting to
compile with MSVC, particularly if including these headers from C++
code. By defining them like this, we can appease MSVC and keep the
definitions the same on all platforms.

Suggested-by: Yin Lin <linyi at vmware.com>
Signed-off-by: Nithin Raju <nithin at vmware.com>
[blp at ovn.org changed large literal to avoid sparse warning]
Signed-off-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list