[ovs-git] [openvswitch/ovs] d4f8d2: tun-metadata: Avoid MSVC compile error on 64-bit b...
GitHub
noreply at github.com
Tue Sep 29 04:40:52 UTC 2015
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: d4f8d278a00a87e0d6c6a42f36d1ae93d5a863ad
https://github.com/openvswitch/ovs/commit/d4f8d278a00a87e0d6c6a42f36d1ae93d5a863ad
Author: Ben Pfaff <blp at nicira.com>
Date: 2015-09-28 (Mon, 28 Sep 2015)
Changed paths:
M lib/tun-metadata.h
Log Message:
-----------
tun-metadata: Avoid MSVC compile error on 64-bit builds for 0-length array.
MSVC does not support zero-size arrays except as the last member of a
defined structure.
The error is hit only on MSVC 64 bit because the size of uint64_t is equal
with sizeof(struct tun_table *).
Reported-by: Alin Gabriel Serdean <aserdean at cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp at nicira.com>
Acked-by: Jesse Gross <jesse at nicira.com>
More information about the git
mailing list