From 49d1ae9a029c404141050e270c05c9348b1011af Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 27 Jun 2024 15:30:22 -0700 Subject: [PATCH] Add duplicate pragma (#6732) Internal build that has DXC as a submodule and that is built with a different VC toolset version started failing after the pragma got moved up in commit 0b9acdb75. Adding a duplicate pragma back at the original location makes both compiler versions happy. --- projects/dxilconv/include/ShaderBinary/ShaderBinary.h | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/dxilconv/include/ShaderBinary/ShaderBinary.h b/projects/dxilconv/include/ShaderBinary/ShaderBinary.h index 54cedad1b6..bf23adbcf7 100644 --- a/projects/dxilconv/include/ShaderBinary/ShaderBinary.h +++ b/projects/dxilconv/include/ShaderBinary/ShaderBinary.h @@ -383,6 +383,7 @@ class COperandBase { struct { D3D10_SB_OPERAND_INDEX_REPRESENTATION m_IndexType[3]; D3D10_SB_OPERAND_INDEX_DIMENSION m_IndexDimension; +#pragma warning(suppress : 4201) // Warning about nameless structure. }; friend class CShaderAsm;