diff options
author | Roman Kiryanov <rkir@google.com> | 2019-04-26 15:24:15 -0700 |
---|---|---|
committer | Roman Kiryanov <rkir@google.com> | 2019-04-30 12:43:56 -0700 |
commit | cdd8dfb0c0874a54f7dfa79a35f9cb8768570f48 (patch) | |
tree | 1b62e6b02e9914dad0e4218f4505021165271d7f | |
parent | b9f479fd808a9540ca09d92888163090e53f97b4 (diff) | |
download | device_generic_goldfish-opengl-cdd8dfb0c0874a54f7dfa79a35f9cb8768570f48.tar.gz device_generic_goldfish-opengl-cdd8dfb0c0874a54f7dfa79a35f9cb8768570f48.tar.bz2 device_generic_goldfish-opengl-cdd8dfb0c0874a54f7dfa79a35f9cb8768570f48.zip |
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>
-rw-r--r-- | system/vulkan_enc/vk_util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/system/vulkan_enc/vk_util.h b/system/vulkan_enc/vk_util.h index 3638043b..e2f51c49 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) |