<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Aug 17, 2012, at 11:37 AM, Benjamin Kramer wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On 17.08.2012, at 19:22, Fariborz Jahanian <<a href="mailto:fjahanian@apple.com">fjahanian@apple.com</a>> wrote:<br><br><blockquote type="cite">Author: fjahanian<br></blockquote><blockquote type="cite">Date: Fri Aug 17 12:22:34 2012<br></blockquote><blockquote type="cite">New Revision: 162109<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">URL: <a href="http://llvm.org/viewvc/llvm-project?rev=162109&view=rev">http://llvm.org/viewvc/llvm-project?rev=162109&view=rev</a><br></blockquote><blockquote type="cite">Log:<br></blockquote><blockquote type="cite">c: implement gcc's -Wbad-function-cast which warns<br></blockquote><blockquote type="cite">on unsafe cast of a c-function call. This is<br></blockquote><blockquote type="cite">a C-only option.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Added:<br></blockquote><blockquote type="cite">   cfe/trunk/test/Sema/warn-bad-function-cast.c<br></blockquote><blockquote type="cite">Modified:<br></blockquote><blockquote type="cite">   cfe/trunk/include/clang/Basic/DiagnosticGroups.td<br></blockquote><blockquote type="cite">   cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td<br></blockquote><blockquote type="cite">   cfe/trunk/lib/Sema/SemaCast.cpp<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Modified: cfe/trunk/include/clang/Basic/DiagnosticGroups.td<br></blockquote><blockquote type="cite">URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=162109&r1=162108&r2=162109&view=diff">http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticGroups.td?rev=162109&r1=162108&r2=162109&view=diff</a><br></blockquote><blockquote type="cite">==============================================================================<br></blockquote><blockquote type="cite">--- cfe/trunk/include/clang/Basic/DiagnosticGroups.td (original)<br></blockquote><blockquote type="cite">+++ cfe/trunk/include/clang/Basic/DiagnosticGroups.td Fri Aug 17 12:22:34 2012<br></blockquote><blockquote type="cite">@@ -157,6 +157,7 @@<br></blockquote><blockquote type="cite">def OverloadedVirtual : DiagGroup<"overloaded-virtual">;<br></blockquote><blockquote type="cite">def PrivateExtern : DiagGroup<"private-extern">;<br></blockquote><blockquote type="cite">def SelTypeCast : DiagGroup<"cast-of-sel-type">;<br></blockquote><blockquote type="cite">+def BadFunctionCast : DiagGroup<"bad-function-cast">;<br></blockquote><blockquote type="cite">def ObjCPropertyImpl : DiagGroup<"objc-property-implementation">;<br></blockquote><blockquote type="cite">def ObjCPropertyNoAttribute : DiagGroup<"objc-property-no-attribute">;<br></blockquote><blockquote type="cite">def ObjCMissingSuperCalls : DiagGroup<"objc-missing-super-calls">;<br></blockquote><blockquote type="cite">@@ -377,7 +378,8 @@<br></blockquote><blockquote type="cite">    ObjCMissingSuperCalls,<br></blockquote><blockquote type="cite">    OverloadedVirtual,<br></blockquote><blockquote type="cite">    PrivateExtern,<br></blockquote><blockquote type="cite">-    SelTypeCast<br></blockquote><blockquote type="cite">+    SelTypeCast,<br></blockquote><blockquote type="cite">+    BadFunctionCast<br></blockquote><blockquote type="cite"> ]>;<br></blockquote><br>While warning compatibility with gcc is a good thing, I don't think having it on with -Wall is a good idea. GCC doesn't seem to enable it with -Wall either.<br></div></blockquote>Sure enough. In r162117.</div><div>- fariborz</div><div><br></div><div><br><blockquote type="cite"><div><br>- Ben<br><font class="Apple-style-span" color="#00721e"><br></font></div></blockquote></div><br></body></html>