[LLVMbugs] [Bug 23512] Clang prints garbage in compile warning

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu May 14 09:10:31 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=23512

Dimitry Andric <dimitry at andric.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #7 from Dimitry Andric <dimitry at andric.com> ---
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:

https://bugs.freebsd.org/200193

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150514/f49f3189/attachment.html>


More information about the llvm-bugs mailing list