2
0
Эх сурвалжийг харах

Examples: disable MSVC warning C5287 in nuklear.h

Latest MSVC has a warning `operands are different enum types` which this disables until upstream nuklear fixes this
Doug Binks 1 сар өмнө
parent
commit
d30d63313c
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  1. 5 0
      deps/nuklear.h

+ 5 - 0
deps/nuklear.h

@@ -423,6 +423,11 @@ NK_STATIC_ASSERT(sizeof(nk_rune) >= 4);
 NK_STATIC_ASSERT(sizeof(nk_size) >= sizeof(void*));
 NK_STATIC_ASSERT(sizeof(nk_size) >= sizeof(void*));
 NK_STATIC_ASSERT(sizeof(nk_ptr) >= sizeof(void*));
 NK_STATIC_ASSERT(sizeof(nk_ptr) >= sizeof(void*));
 
 
+#if defined(_MSC_VER)
+/* disable `operands are different enum types` warning on MSVC */ 
+#pragma warning( disable: 5287 )
+#endif
+
 /* ============================================================================
 /* ============================================================================
  *
  *
  *                                  API
  *                                  API