From f992173c7b0d52d87503423b14c9efeb112ef65f Mon Sep 17 00:00:00 2001 From: Tony Barbour Date: Wed, 22 Apr 2015 11:36:22 -0600 Subject: misc: Changes to fix warnings in Windows / VC++ build --- layers/draw_state.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'layers/draw_state.cpp') 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; -- cgit v1.2.3