浏览代码

Fix break in VS 2019 from warning C4063 (#2929)

Tex Riddell 5 年之前
父节点
当前提交
3f95e37b2f
共有 2 个文件被更改,包括 4 次插入0 次删除
  1. 2 0
      lib/HLSL/DxilContainerReflection.cpp
  2. 2 0
      tools/clang/unittests/HLSLTestLib/D3DReflectionDumper.cpp

+ 2 - 0
lib/HLSL/DxilContainerReflection.cpp

@@ -44,6 +44,8 @@
 
 // Remove this workaround once newer version of d3dcommon.h can be compiled against
 #define ADD_16_64_BIT_TYPES
+// Disable warning about value not being valid in enum
+#pragma warning( disable : 4063 )
 
 const GUID IID_ID3D11ShaderReflection_43 = {
     0x0a233719,

+ 2 - 0
tools/clang/unittests/HLSLTestLib/D3DReflectionDumper.cpp

@@ -16,6 +16,8 @@
 
 // Remove this workaround once newer version of d3dcommon.h can be compiled against
 #define ADD_16_64_BIT_TYPES
+// Disable warning about value not being valid in enum
+#pragma warning( disable : 4063 )
 
 // Copied from llvm/ADT/StringExtras.h
 static inline char hexdigit(unsigned X, bool LowerCase = false) {