diff options
author | Mike Schuchardt <[email protected]> | 2023-02-17 15:00:19 -0800 |
---|---|---|
committer | Juan Ramos <[email protected]> | 2023-02-17 16:36:20 -0700 |
commit | 6c683158492d6b2d35fccab6dae784fef87eaf99 (patch) | |
tree | 85c39ab4f3caa14f1c10a6933d57ebd3378dfe77 | |
parent | bd6443d28f2ebecedfb839b52d612011ba623d14 (diff) | |
download | Vulkan-Headers-6c683158492d6b2d35fccab6dae784fef87eaf99.tar.gz Vulkan-Headers-6c683158492d6b2d35fccab6dae784fef87eaf99.zip |
Add -Wno-redundant-parens to BUILD.gn
The SC vk.xml merge added extra parentheses to the
VK_DEFINE_NON_DISPATCHABLE_HANDLES macro in order to satisfy MISRA rule
20.7. Make sure this doesn't break downstream builds that would
otherwise warn about them.
-rw-r--r-- | BUILD.gn | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -43,6 +43,11 @@ config("vulkan_headers_config") { if (defined(is_ggp) && is_ggp) { defines += [ "VK_USE_PLATFORM_GGP" ] } + if (is_clang) { + cflags = [ + "-Wno-redundant-parens", + ] + } } # Vulkan headers only, no compiled sources. |