diff options
author | 2018-10-11 16:26:51 -0700 | |
---|---|---|
committer | 2018-10-12 16:40:49 -0700 | |
commit | 59b492c8036e2886b2cfb1c4b03ccd72f3126b66 (patch) | |
tree | cbeec16319dc84a7e5d3ef3881aa908fbe16a1ef /vulkan/vkjson/vkjson.h | |
parent | 619425313528e85ecdfc09ce468bcd2f1184c2bf (diff) |
Suppress implicit-fallthrough warnings.
Bug: b/112564944
Test: build with global -Wimplicit-fallthrough
Change-Id: Ib04daba08bc450657ab8997959a25fe99d3c1d48
Diffstat (limited to 'vulkan/vkjson/vkjson.h')
-rw-r--r-- | vulkan/vkjson/vkjson.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vulkan/vkjson/vkjson.h b/vulkan/vkjson/vkjson.h index 5e8428ab17..4f97c3ec88 100644 --- a/vulkan/vkjson/vkjson.h +++ b/vulkan/vkjson/vkjson.h @@ -41,6 +41,12 @@ #define VK_API_VERSION_1_1 VK_MAKE_VERSION(1, 1, 0) #endif +/* + * Annotation to tell clang that we intend to fall through from one case to + * another in a switch. Sourced from android-base/macros.h. + */ +#define FALLTHROUGH_INTENDED [[clang::fallthrough]] + struct VkJsonLayer { VkLayerProperties properties; std::vector<VkExtensionProperties> extensions; |