<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:dimitry@andric.com" title="Dimitry Andric <dimitry@andric.com>"> <span class="fn">Dimitry Andric</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED MOVED - Clang prints garbage in compile warning"
href="https://llvm.org/bugs/show_bug.cgi?id=23512">bug 23512</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>MOVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED MOVED - Clang prints garbage in compile warning"
href="https://llvm.org/bugs/show_bug.cgi?id=23512#c7">Comment # 7</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED MOVED - Clang prints garbage in compile warning"
href="https://llvm.org/bugs/show_bug.cgi?id=23512">bug 23512</a>
from <span class="vcard"><a class="email" href="mailto:dimitry@andric.com" title="Dimitry Andric <dimitry@andric.com>"> <span class="fn">Dimitry Andric</span></a>
</span></b>
<pre>Right, this is a bug in the FreeBSD-specific -fformat-extensions support, added
in the lang/clang35 port. This flag isn't supported by upstream clang, and has
been replaced by the __format__(__freebsd_kprintf__, x, y) attribute in trunk.
For reference, a minimal example is:
void foo(int, const char *, ...) __attribute__((__format__(__printf__, 2, 3)));
void bar(const unsigned char *p, unsigned short len)
{
foo(-1, " %*D", len, p, "-");
}
Let's move this bug over to the FreeBSD bug tracker:
<a href="https://bugs.freebsd.org/200193">https://bugs.freebsd.org/200193</a></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>