Skip to content
Snippets Groups Projects
Commit cdd8dfb0 authored by Roman Kiryanov's avatar Roman Kiryanov
Browse files

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: default avatarRoman Kiryanov <rkir@google.com>
parent b9f479fd
No related branches found
No related tags found
No related merge requests found
...@@ -194,8 +194,8 @@ __vk_find_struct(void *start, VkStructureType sType) ...@@ -194,8 +194,8 @@ __vk_find_struct(void *start, VkStructureType sType)
template <class T> void vk_is_vk_struct(T *s) template <class T> void vk_is_vk_struct(T *s)
{ {
static_assert(sizeof(s->sType) == sizeof(VkStructureType)); static_assert(sizeof(s->sType) == sizeof(VkStructureType), "Vulkan structures has the sType field of type VkStructureType");
static_assert(sizeof(s->pNext) == sizeof(void*)); 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) template <class T, class H> T* vk_find_struct(H* head, VkStructureType sType)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment