From owner-freebsd-current@FreeBSD.ORG Thu May 8 09:57:56 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E90437B404 for ; Thu, 8 May 2003 09:57:56 -0700 (PDT) Received: from mail.ncircle.com (mail.ncircle.com [209.140.253.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id D361043F3F for ; Thu, 8 May 2003 09:57:55 -0700 (PDT) (envelope-from brian@ncircle.com) Received: from mail.ncircle.com (localhost [127.0.0.1]) by mail.ncircle.com (8.12.9/8.12.8) with ESMTP id h48GlMs4001174 for ; Thu, 8 May 2003 09:47:22 -0700 (PDT) Received: from localhost (bbuchanan@localhost)h48GlLBf001171 for ; Thu, 8 May 2003 09:47:22 -0700 (PDT) X-Authentication-Warning: mail.ncircle.com: bbuchanan owned process doing -bs Date: Thu, 8 May 2003 09:47:21 -0700 (PDT) From: Brian Buchanan X-X-Sender: To: Message-ID: <20030508093842.V97097-100000@mail.ncircle.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Spurious printf '$' conversion warnings X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 16:57:56 -0000 gcc on -CURRENT is giving spurious warnings for format strings with dollar fields: test.c: #include 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