From 2c953d93672aa42e722bfc709ce9129cfa51a11b Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Fri, 3 Apr 2015 23:35:30 +0200 Subject: clang compatibility: do not use anonymous struct --- src/core/common/Variant.hpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/core/common/Variant.hpp b/src/core/common/Variant.hpp index 4cdc94f..df72fca 100644 --- a/src/core/common/Variant.hpp +++ b/src/core/common/Variant.hpp @@ -76,8 +76,11 @@ enum class VariantType : uint8_t { * was found in 8 Bytes. */ struct VariantMetadata { - union { - struct { + /** + * Structure holding the actual metadata. + */ + struct Meta { + /** * Field used to store the type of a Variant (4 Bit, space for 16 * objects). @@ -100,7 +103,13 @@ struct VariantMetadata { * Unique id of the file from which the variant was parsed. */ uint16_t locationSourceId : 16; // 65.000 Source files - } data; + }; + + union { + /** + * The actual metadata. + */ + Meta data; /** * The metadata as 64 Bit value. -- cgit v1.2.3