<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:t.p.northover@gmail.com" title="Tim Northover <t.p.northover@gmail.com>"> <span class="fn">Tim Northover</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Old cast warning in Extern "C" code."
href="https://bugs.llvm.org/show_bug.cgi?id=37350">bug 37350</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>t.p.northover@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Old cast warning in Extern "C" code."
href="https://bugs.llvm.org/show_bug.cgi?id=37350#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Old cast warning in Extern "C" code."
href="https://bugs.llvm.org/show_bug.cgi?id=37350">bug 37350</a>
from <span class="vcard"><a class="email" href="mailto:t.p.northover@gmail.com" title="Tim Northover <t.p.northover@gmail.com>"> <span class="fn">Tim Northover</span></a>
</span></b>
<pre><span class="quote">> But since it is inside a section of code that is declared as C, I don't think that there should be any warning.</span >
This isn't what 'extern "C"' means. It changes the low-level name of functions
so that they can be conveniently called from C code, but the source inside an
'extern "C"' block is still normal C++. It can use the usual C++ style casts
and there's no more (or less) reason to prefer the old-style ones.
Also, this warning has to be enabled manually (it's not even in -Wall) so I see
no reason to change its behaviour inside that kind of block.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>