misc: Changes to fix warnings in Windows / VC++ build
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 2f5e561..af1c478 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 @@
                                                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;