[ovs-git] [openvswitch/ovs] 4fe660: util: Make PADDED_MEMBERS work more than once per ...
GitHub
noreply at github.com
Thu Jul 13 17:25:44 UTC 2017
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 4fe660719dde3def2eb2e427e1313e03c4a8066f
https://github.com/openvswitch/ovs/commit/4fe660719dde3def2eb2e427e1313e03c4a8066f
Author: Ben Pfaff <blp at ovn.org>
Date: 2017-07-13 (Thu, 13 Jul 2017)
Changed paths:
M include/openvswitch/util.h
Log Message:
-----------
util: Make PADDED_MEMBERS work more than once per struct.
Until now, if the PADDED_MEMBERS macro was used more than once in a struct,
it caused Clang and GCC warnings because of multiple definition of a member
named "pad". This commit fixes the problem by giving each of these a
unique name.
MSVC, Clang, and GCC all support the __COUNTER__ macro, although it is not
standardized.
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Bhanuprakash Bodireddy <Bhanuprakash.bodireddy at intel.com>
More information about the git
mailing list