aboutsummaryrefslogtreecommitdiff
path: root/layers/draw_state.cpp
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2015-04-22 11:36:22 -0600
committerTony Barbour <tony@LunarG.com>2015-04-22 12:47:54 -0600
commitf992173c7b0d52d87503423b14c9efeb112ef65f (patch)
treee3c46890c4ab75b893421041dce431b9a701b779 /layers/draw_state.cpp
parentfdc2d35f95c58591c887e6153271687cf92a9257 (diff)
downloadusermoji-f992173c7b0d52d87503423b14c9efeb112ef65f.tar.xz
misc: Changes to fix warnings in Windows / VC++ build
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;