瀏覽代碼

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 月之前
父節點
當前提交
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_ptr) >= sizeof(void*));
 
+#if defined(_MSC_VER)
+/* disable `operands are different enum types` warning on MSVC */ 
+#pragma warning( disable: 5287 )
+#endif
+
 /* ============================================================================
  *
  *                                  API