<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - Provide a way to compile legacy code that uses argument-less return in non-void functions"
href="http://llvm.org/bugs/show_bug.cgi?id=20532">bug 20532</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>REOPENED
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>WONTFIX
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - Provide a way to compile legacy code that uses argument-less return in non-void functions"
href="http://llvm.org/bugs/show_bug.cgi?id=20532#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED WONTFIX - Provide a way to compile legacy code that uses argument-less return in non-void functions"
href="http://llvm.org/bugs/show_bug.cgi?id=20532">bug 20532</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=20532#c3">comment #3</a>)
<span class="quote">> I think the situation could be improved here as the behavior from clang
> differs from that of gcc. It would be great for drop-in-compatibility if
> clang could set -Wno-error=return-type by default when compiling code in any
> GNU standard.</span >
I think this is an area where we don't need to bend over backwards to accept
invalid C code for bug-for-bug gcc compatibility. If everyone adds prototypes
to their legacy C code, the world will be better for it. In the meantime, we
have a workaround in place.</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>