<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:nlewycky@google.com" title="Nick Lewycky <nlewycky@google.com>"> <span class="fn">Nick Lewycky</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - attribute((nonnull)) warnings don't work for function pointers"
href="http://llvm.org/bugs/show_bug.cgi?id=13190">bug 13190</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;">CC</td>
<td>
</td>
<td>nlewycky@google.com
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - attribute((nonnull)) warnings don't work for function pointers"
href="http://llvm.org/bugs/show_bug.cgi?id=13190#c6">Comment # 6</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - attribute((nonnull)) warnings don't work for function pointers"
href="http://llvm.org/bugs/show_bug.cgi?id=13190">bug 13190</a>
from <span class="vcard"><a class="email" href="mailto:nlewycky@google.com" title="Nick Lewycky <nlewycky@google.com>"> <span class="fn">Nick Lewycky</span></a>
</span></b>
<pre>Looks like this one got fixed somewhere along the way:
$ echo 'void (*bar)(void *x) __attribute__((nonnull));
<span class="quote">>
> int main(int argc, char *argv[])
> {
> bar(0);
> return 0;
> }
> ' | clang -x c++ -</span >
<stdin>:5:6: warning: null passed to a callee which requires a non-null
argument
[-Wnonnull]
bar(0);
~^</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>