aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'layers/draw_state.cpp')
-rw-r--r--layers/draw_state.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 2f5e5614..af1c4787 100644
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -30,9 +30,13 @@
#include "loader_platform.h"
#include "vk_dispatch_table_helper.h"
#include "vk_struct_string_helper_cpp.h"
+#if defined(__GNUC__)
#pragma GCC diagnostic ignored "-Wwrite-strings"
+#endif
#include "vk_struct_graphviz_helper.h"
+#if defined(__GNUC__)
#pragma GCC diagnostic warning "-Wwrite-strings"
+#endif
#include "vk_struct_size_helper.h"
#include "draw_state.h"
#include "layers_config.h"
@@ -1484,8 +1488,6 @@ VK_LAYER_EXPORT VkResult VKAPI vkGetGlobalExtensionInfo(
size_t* pDataSize,
void* pData)
{
- VkResult result;
-
/* This entrypoint is NOT going to init it's own dispatch table since loader calls here early */
VkExtensionProperties *ext_props;
uint32_t *count;