Date: Thu, 8 May 2003 09:47:21 -0700 (PDT) From: Brian Buchanan <brian@ncircle.com> To: <current@freebsd.org> Subject: Spurious printf '$' conversion warnings Message-ID: <20030508093842.V97097-100000@mail.ncircle.com>
next in thread | raw e-mail | index | archive | help
gcc on -CURRENT is giving spurious warnings for format strings with dollar fields: test.c: #include <stdio.h> int main(void) { printf("%s %1$s\n", "foo"); return (0); } > gcc -Wformat test.c test.c: In function `main': test.c:5: warning: unknown conversion type character `$' in format > ./a.out foo foo > gcc -v Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.2.2 [FreeBSD] 20030205 (release) Anyone have insight into this? I'm unfortunately not familiar enough with the gcc source to track it down easily. -Brian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030508093842.V97097-100000>