diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-11-18 21:42:38 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-11-18 21:42:38 +0000 |
commit | bee2bc3932db8ef01da92afc81486543e9a09e22 (patch) | |
tree | dda7495631541cec7f31fe2ad11c7e1deb89e4bb /clang | |
parent | c7ac7d7a9b9e62b81380a7acd6c91f6acb63d9ab (diff) | |
download | bcm5719-llvm-bee2bc3932db8ef01da92afc81486543e9a09e22.tar.gz bcm5719-llvm-bee2bc3932db8ef01da92afc81486543e9a09e22.zip |
[MSVC Compat] Make -Wmicrosoft-cast not an error by default
Too much code is sloppy about this to error by default.
llvm-svn: 253506
Diffstat (limited to 'clang')
-rw-r--r-- | clang/include/clang/Basic/DiagnosticSemaKinds.td | 6 | ||||
-rw-r--r-- | clang/test/SemaCXX/MicrosoftCompatibility-cxx98.cpp | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/clang/include/clang/Basic/DiagnosticSemaKinds.td b/clang/include/clang/Basic/DiagnosticSemaKinds.td index 995bd157aaa..61f36537703 100644 --- a/clang/include/clang/Basic/DiagnosticSemaKinds.td +++ b/clang/include/clang/Basic/DiagnosticSemaKinds.td @@ -2713,8 +2713,7 @@ def warn_impcast_floating_point_to_bool : Warning< InGroup<ImplicitConversionFloatingPointToBool>; def ext_ms_impcast_fn_obj : ExtWarn< "implicit conversion between pointer-to-function and pointer-to-object is a " - "Microsoft extension">, - InGroup<MicrosoftCast>, DefaultError, SFINAEFailure; + "Microsoft extension">, InGroup<MicrosoftCast>; def warn_impcast_pointer_to_bool : Warning< "address of%select{| function| array}0 '%1' will always evaluate to " @@ -5580,8 +5579,7 @@ def ext_cast_fn_obj : Extension< "cast between pointer-to-function and pointer-to-object is an extension">; def ext_ms_cast_fn_obj : ExtWarn< "static_cast between pointer-to-function and pointer-to-object is a " - "Microsoft extension">, - InGroup<MicrosoftCast>, DefaultError, SFINAEFailure; + "Microsoft extension">, InGroup<MicrosoftCast>; def warn_cxx98_compat_cast_fn_obj : Warning< "cast between pointer-to-function and pointer-to-object is incompatible with C++98">, InGroup<CXX98CompatPedantic>, DefaultIgnore; diff --git a/clang/test/SemaCXX/MicrosoftCompatibility-cxx98.cpp b/clang/test/SemaCXX/MicrosoftCompatibility-cxx98.cpp index 85123b54b4d..3b80d0937e2 100644 --- a/clang/test/SemaCXX/MicrosoftCompatibility-cxx98.cpp +++ b/clang/test/SemaCXX/MicrosoftCompatibility-cxx98.cpp @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 %s -triple i686-pc-win32 -fsyntax-only -std=c++98 -Wmicrosoft -verify -fms-compatibility -fexceptions -fcxx-exceptions -Wno-error=microsoft-cast +// RUN: %clang_cc1 %s -triple i686-pc-win32 -fsyntax-only -std=c++98 -Wmicrosoft -verify -fms-compatibility -fexceptions -fcxx-exceptions //MSVC allows forward enum declaration |