From owner-freebsd-bugs Tue Apr 24 17:30: 8 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D60B337B42C for ; Tue, 24 Apr 2001 17:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3P0U1C28802; Tue, 24 Apr 2001 17:30:01 -0700 (PDT) (envelope-from gnats) Received: from newage.l3.ilse.nl (newage.l3.ilse.nl [212.72.39.210]) by hub.freebsd.org (Postfix) with ESMTP id 1DD1637B424 for ; Tue, 24 Apr 2001 17:21:09 -0700 (PDT) (envelope-from marcolz@serv4.ilse.nl) Received: from serv4.ilse.nl (serv4.ilse.nl [212.189.131.14]) by newage.l3.ilse.nl (8.11.0/8.10.2) with ESMTP id f3P0L3J41358; Wed, 25 Apr 2001 02:21:04 +0200 (MEST) Received: (from marcolz@localhost) by serv4.ilse.nl (8.11.3/8.11.1) id f3P0L2718571; Wed, 25 Apr 2001 02:21:02 +0200 (CEST) (envelope-from marcolz) Message-Id: <200104250021.f3P0L2718571@serv4.ilse.nl> Date: Wed, 25 Apr 2001 02:21:02 +0200 (CEST) From: marcolz@ilse.nl Reply-To: marcolz@ilse.nl To: FreeBSD-gnats-submit@freebsd.org Cc: sys@ilse.nl X-Send-Pr-Version: 3.113 Subject: gnu/26827: gcc warning about strftime's '%+' Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26827 >Category: gnu >Synopsis: gcc doesn't know about '%+' in formatstring of strftime() >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Apr 24 17:30:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Marc Olzheim >Release: FreeBSD 4.3-RC i386 >Organization: ilse technology >Environment: System: FreeBSD serv4.ilse.nl 4.3-RC FreeBSD 4.3-RC #0: Thu Apr 19 10:48:44 CEST 2001 marcolz@serv4.ilse.nl:/usr/src/sys/compile/serv4 i386 >Description: gcc warns when using '%+' in a formatstring when using strftime(), although libc knows it. >How-To-Repeat: Any piece of code containing something like strftime(buffer, sizeof(buffer), "%+", localtime(&(sb.st_mtime))); compiled with with -Wall >Fix: --- /usr/src/contrib/gcc/c-common.c Wed Apr 25 02:03:07 2001 +++ /usr/src/contrib/gcc/c-common.c Wed Apr 25 02:05:37 2001 @@ -1155,7 +1155,7 @@ { "D", 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "2" }, { "g", 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "2O-_0w" }, { "cx", 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "3E" }, - { "%RTXnrt", 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "" }, + { "%+RTXnrt", 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "" }, { "P", 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "G" }, { "HIMSUWdemw", 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "-_0Ow" }, { "Vju", 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "-_0Oow" }, >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message