From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6393 invoked by alias); 26 May 2004 17:28:37 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 6386 invoked by uid 48); 26 May 2004 17:28:36 -0000 Date: Thu, 27 May 2004 10:48:00 -0000 Message-ID: <20040526172836.6385.qmail@sourceware.org> From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040526021958.15657.paulmoore100@hotmail.com> References: <20040526021958.15657.paulmoore100@hotmail.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c/15657] -Wformat diagnostic confusing X-Bugzilla-Reason: CC X-SW-Source: 2004-05/txt/msg03095.txt.bz2 List-Id: ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-26 17:28 ------- That is because glibc has an extension before C99 came out. see . C99 added %a as another scanf format specifier for floating point values. This conflicts with the glibc extension where %as, %a[ and %aS mean to allocate the string for the data read. A strictly conforming C99 program using %as, %a[ or %aS in a scanf format string will misbehave under glibc. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15657