Suppress warning "switch statement contains 'default' but no 'case' labels" on MSVC.
authorFrancois Pichet <pichet2000@gmail.com>
Mon, 17 Jan 2011 02:07:17 +0000 (02:07 +0000)
committerFrancois Pichet <pichet2000@gmail.com>
Mon, 17 Jan 2011 02:07:17 +0000 (02:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123610 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index 7df188560b75ede4b94996f732073b699da2c9d3..52f0a5815b6bfde3dd2777952986868719aba7d2 100644 (file)
@@ -286,6 +286,7 @@ if( MSVC )
     -wd4624 # Suppress ''derived class' : destructor could not be generated because a base class destructor is inaccessible'
     -wd4715 # Suppress ''function' : not all control paths return a value'
     -wd4800 # Suppress ''type' : forcing value to bool 'true' or 'false' (performance warning)'
+    -wd4065 # Suppress 'switch statement contains 'default' but no 'case' labels'
 
     -w14062 # Promote "enumerator in switch of enum is not handled" to level 1 warning.
     )