From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25194 invoked by alias); 3 May 2002 13:06:05 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 25145 invoked by uid 71); 3 May 2002 13:06:03 -0000 Resent-Date: 3 May 2002 13:06:03 -0000 Resent-Message-ID: <20020503130603.25144.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org, prpetit@canal-plus.com Resent-Reply-To: gcc-gnats@gcc.gnu.org, peio@blutch.dyndns.org Received:(qmail 21460 invoked by uid 61); 3 May 2002 13:02:15 -0000 Message-Id:<20020503130215.21459.qmail@sources.redhat.com> Date: Fri, 03 May 2002 06:06:00 -0000 From: peio@blutch.dyndns.org Reply-To: peio@blutch.dyndns.org To: gcc-gnats@gcc.gnu.org Cc: prpetit@canal-plus.com X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) X-GNATS-Notify:prpetit@canal-plus.com Subject: c/6547: misleading printf '$' format X-SW-Source: 2002-05/txt/msg00063.txt.bz2 List-Id: >Number: 6547 >Category: c >Synopsis: misleading printf '$' format >Confidential: no >Severity: non-critical >Priority: low >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Fri May 03 06:06:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Pierre PETIT >Release: gcc version 3.0.4 (and 2.95.4) >Organization: >Environment: Debian GNU/Linux (testing) x86 Linux kernel 2.4.18 - libc v2.2.5 >Description: Formats with '$' character get a warning on gcc-3.0, when compiling with -Wall (or at least -Wformat): "warning: unknown conversion type character '$' in format" With both v2.95 and 3.0, there is a warning on "%.*1$s": "warning: unknown conversion type character '1' in format" >How-To-Repeat: #include int main (int argc, char *argv[]) { printf("%.*s == %2$.*1$s\n", argc, *argv); return 0; } >Fix: >Release-Note: >Audit-Trail: >Unformatted: