[CMake] Promote extension warnings to errors.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 7 Jun 2012 23:33:56 +0000 (23:33 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Thu, 7 Jun 2012 23:33:56 +0000 (23:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158176 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/HandleLLVMOptions.cmake

index 65bf63408f08378753f1b3151b5cae077a116a2e..34d2d415d1b85b8fa3d64c230dc0869fd92c7b4b 100644 (file)
@@ -171,7 +171,10 @@ if( MSVC )
 
     # Promoted warnings.
     -w14062 # Promote 'enumerator in switch of enum is not handled' to level 1 warning.
-    -w14239 # Promote 'nonstandard extension used : 'token' : conversion from 'type' to 'type'' to level 1 warning.
+
+    # Promoted warnings to errors.
+    -we4238 # Promote 'nonstandard extension used : class rvalue used as lvalue' to error.
+    -we4239 # Promote 'nonstandard extension used : 'token' : conversion from 'type' to 'type'' to error.
     )
 
   # Enable warnings