tun-metadata: Avoid MSVC compile error on 64-bit builds for 0-length array.
authorBen Pfaff <blp@nicira.com>
Tue, 29 Sep 2015 04:30:05 +0000 (21:30 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 29 Sep 2015 04:40:20 +0000 (21:40 -0700)
commitd4f8d278a00a87e0d6c6a42f36d1ae93d5a863ad
treeefa9308b86fa43a60238e9af8a2e151266bfd3b2
parent9667de98d64e0f2ddcefb9fb3a650a38a30283b1
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@cloudbasesolutions.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
lib/tun-metadata.h