diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-06-07 23:33:56 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2012-06-07 23:33:56 +0000 |
commit | 67762d1d455a2047248f85dc6ca1263d69af4095 (patch) | |
tree | e4df5541a6aacadc635c3f59943ce25ae34673b8 | |
parent | 9236362a64ce1609222512fe3f17eeb886a3ddea (diff) |
[CMake] Promote extension warnings to errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158176 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | cmake/modules/HandleLLVMOptions.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake index 65bf63408f..34d2d415d1 100644 --- a/cmake/modules/HandleLLVMOptions.cmake +++ b/cmake/modules/HandleLLVMOptions.cmake @@ -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 |