mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Runtime: Suppress a -Winvalid-offsetof warning.
This commit is contained in:
@@ -439,6 +439,8 @@ namespace {
|
|||||||
} // end anonymous namespace
|
} // end anonymous namespace
|
||||||
|
|
||||||
namespace swift {
|
namespace swift {
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Winvalid-offsetof"
|
||||||
struct StaticAssertGenericMetadataCacheEntryValueOffset {
|
struct StaticAssertGenericMetadataCacheEntryValueOffset {
|
||||||
static_assert(
|
static_assert(
|
||||||
offsetof(GenericCacheEntry, Value) ==
|
offsetof(GenericCacheEntry, Value) ==
|
||||||
@@ -446,6 +448,7 @@ namespace swift {
|
|||||||
Value),
|
Value),
|
||||||
"The generic metadata cache entry layout mismatch");
|
"The generic metadata cache entry layout mismatch");
|
||||||
};
|
};
|
||||||
|
#pragma clang diagnostic pop
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|||||||
Reference in New Issue
Block a user