Tentatively enable -Wcast-calling-convention by default

In Chrome, this would have found two true positives around CreateThread
if we hadn't already fixed them while rolling out ASan. We didn't get
any other hits in Chrome. I'm curious to hear if this warning finds
anything in other projects.

llvm-svn: 269780
This commit is contained in:
Reid Kleckner 2016-05-17 16:50:45 +00:00
parent 2a6d78b820
commit dad242c615
1 changed files with 1 additions and 1 deletions

View File

@ -6639,7 +6639,7 @@ def warn_function_def_in_objc_container : Warning<
def warn_cast_calling_conv : Warning<
"cast between incompatible calling conventions '%0' and '%1'; "
"calls through this pointer may abort at runtime">,
InGroup<DiagGroup<"cast-calling-convention">>, DefaultIgnore;
InGroup<DiagGroup<"cast-calling-convention">>;
def note_change_calling_conv_fixit : Note<
"consider defining %0 with the '%1' calling convention">;
def warn_bad_function_cast : Warning<