[CMake] Promote extension warnings to errors.

llvm-svn: 158176
This commit is contained in:
Michael J. Spencer 2012-06-07 23:33:56 +00:00
parent f51a6d5fae
commit 6f5ee07731

View 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