From cdd8dfb0c0874a54f7dfa79a35f9cb8768570f48 Mon Sep 17 00:00:00 2001 From: Roman Kiryanov <rkir@google.com> Date: Fri, 26 Apr 2019 15:24:15 -0700 Subject: [PATCH] Fix build break static_assert with no message is a C++17 extension Bug: 131176903 Test: make Change-Id: Ib3a07f5c6edee8dd1dfab3ac9d57209c920a287d Merged-In: I156b3754d142d3903c732e1ac7e95c137302a15a Signed-off-by: Roman Kiryanov <rkir@google.com> --- system/vulkan_enc/vk_util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/vulkan_enc/vk_util.h b/system/vulkan_enc/vk_util.h index 3638043..e2f51c4 100644 --- a/system/vulkan_enc/vk_util.h +++ b/system/vulkan_enc/vk_util.h @@ -194,8 +194,8 @@ __vk_find_struct(void *start, VkStructureType sType) template <class T> void vk_is_vk_struct(T *s) { - static_assert(sizeof(s->sType) == sizeof(VkStructureType)); - static_assert(sizeof(s->pNext) == sizeof(void*)); + static_assert(sizeof(s->sType) == sizeof(VkStructureType), "Vulkan structures has the sType field of type VkStructureType"); + static_assert(sizeof(s->pNext) == sizeof(void*), "Vulkan structures has the pNext field of void*"); } template <class T, class H> T* vk_find_struct(H* head, VkStructureType sType) -- GitLab