Commit 4d4a190b by Ben Clayton

CMakeLists: Silence pedantic MSVC warning about switch with no cases

This is failing the Windows builds. There is no equivalent warning on Clang or GCC, and this seems harmless, so just silence it. Bug: b/132445520 Change-Id: I4c9498d87490fe892183e2d24c80979d785c37e8 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31428 Presubmit-Ready: Ben Clayton <bclayton@google.com> Reviewed-by: 's avatarAntonio Maiorano <amaiorano@google.com> Reviewed-by: 's avatarBen Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarBen Clayton <bclayton@google.com>
parent cfbe5379
...@@ -239,6 +239,7 @@ if(MSVC) ...@@ -239,6 +239,7 @@ if(MSVC)
list(APPEND SWIFTSHADER_COMPILE_OPTIONS list(APPEND SWIFTSHADER_COMPILE_OPTIONS
"/wd4005" # 'identifier' : macro redefinition "/wd4005" # 'identifier' : macro redefinition
"/wd4018" # 'expression' : signed/unsigned mismatch "/wd4018" # 'expression' : signed/unsigned mismatch
"/wd4065" # switch statement contains 'default' but no 'case' labels
"/wd4141" # 'modifier' : used more than once "/wd4141" # 'modifier' : used more than once
"/wd4146" # unary minus operator applied to unsigned type, result still unsigned "/wd4146" # unary minus operator applied to unsigned type, result still unsigned
"/wd4244" # 'conversion' conversion from 'type1' to 'type2', possible loss of data "/wd4244" # 'conversion' conversion from 'type1' to 'type2', possible loss of data
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment