mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-12 14:46:08 +00:00
Fix and enable -Wnested-anon-types
Bug: dawn:394 Change-Id: I51b533c07f21bcacd22a058cf4a080b9b2b853f7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/20700 Reviewed-by: Stephen White <senorblanco@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
754c161fd3
commit
e642b1d959
@@ -118,7 +118,6 @@ config("dawn_internal") {
|
||||
"-Wno-gnu-zero-variadic-macro-arguments",
|
||||
"-Wno-language-extension-token",
|
||||
"-Wno-microsoft-enum-value",
|
||||
"-Wno-nested-anon-types",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,19 +71,23 @@ namespace dawn_native {
|
||||
// Track whether this block has been split or not.
|
||||
BlockState mState;
|
||||
|
||||
struct FreeLinks {
|
||||
BuddyBlock* pPrev;
|
||||
BuddyBlock* pNext;
|
||||
};
|
||||
|
||||
struct SplitLink {
|
||||
BuddyBlock* pLeft;
|
||||
};
|
||||
|
||||
union {
|
||||
// Used upon allocation.
|
||||
// Avoids searching for the next free block.
|
||||
struct {
|
||||
BuddyBlock* pPrev;
|
||||
BuddyBlock* pNext;
|
||||
} free;
|
||||
FreeLinks free;
|
||||
|
||||
// Used upon de-allocation.
|
||||
// Had this block split upon allocation, it and it's buddy is to be deleted.
|
||||
struct {
|
||||
BuddyBlock* pLeft;
|
||||
} split;
|
||||
SplitLink split;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user