From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13452 invoked by alias); 9 Oct 2008 07:05:22 -0000 Received: (qmail 12526 invoked by uid 48); 9 Oct 2008 07:04:01 -0000 Date: Thu, 09 Oct 2008 07:05:00 -0000 Message-ID: <20081009070401.12525.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/37768] bogus warnings on x86_64-mingw32 due to attribute((format(printf))) breakage In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "mikpe at it dot uu dot se" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-10/txt/msg00618.txt.bz2 ------- Comment #2 from mikpe at it dot uu dot se 2008-10-09 07:04 ------- > > The program below illustrates the issue. It declares a private C99-compliant > > snprintf() implementation and invokes it with "%zu" and "%llx" formats. This > > triggers the following bogus warnings on x86_64-pc-mingw32: > > Use gnu_printf for such an implementation. Thanks. Using gnu_printf (new in 4.4) solves the issues I had. -- mikpe at it dot uu dot se changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37768