Skip to content

Commit

Permalink
Suppress switch with only default warning for Windows builds
Browse files Browse the repository at this point in the history
We get this case occasionally - just seen one in TableGen

Change-Id: I4ffe6345620e35ccf57172325a13cccae4738084
git-pf-unshelve: stg@2125239
  • Loading branch information
dstuttar authored and dstutt committed Jun 2, 2020
1 parent 572cea8 commit 357ead6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/cmake/modules/HandleLLVMOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,8 @@ if (MSVC)
# v15.8.8. Re-evaluate the usefulness of this diagnostic when the bug
# is fixed.
-wd4709 # Suppress comma operator within array index expression
# Cases arise from TableGen that result in this type of switch
-wd4065 # Suppress: 'switch statement contains 'default' but no 'case' labels'

# Ideally, we'd like this warning to be enabled, but even MSVC 2019 doesn't
# support the 'aligned' attribute in the way that clang sources requires (for
Expand Down

0 comments on commit 357ead6

Please sign in to comment.