X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: Message-Id: <200410311110.i9VBALbc028787@speedy.ludd.ltu.se> Subject: Re: tests/libc/ansi/time/makefile problems In-Reply-To: "from Brian Inglis at Oct 31, 2004 03:51:46 am" To: djgpp-workers AT delorie DOT com Date: Sun, 31 Oct 2004 12:10:21 +0100 (CET) X-Mailer: ELM [version 2.4ME+ PL78 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-ltu-MailScanner-Information: Please contact the ISP for more information X-ltu-MailScanner: Found to be clean X-MailScanner-From: ams AT ludd DOT ltu DOT se Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk According to Brian Inglis: > >> >Can anyone run make successfully in tests/libc/ansi/time/? > >Without that line make says: > >gcc @../../../gcc.opt -I. -I- -I../../../../include -c xstrftm.c > >cc1.exe: warnings being treated as errors > >xstrftm.c: In function `main': > >xstrftm.c:17: warning: `%x' yields only last 2 digits of year in some locales > >I'm using gcc 2.953. > > Not seeing that with 3.4.1. > Check gcc*.opt to see if -Wformat and -pedantic or -Wformat-y2k is > set, and change to or add -Wno-format-y2k. No -Wformat, -pedantic or -Wformat-y2k present. Adding -Wno-format-y2k makes no difference (still warns about %x). Here's tests/gcc.opt (with -Wno-format-y2k added by me): -MD -O3 -g -Wall -Wbad-function-cast -Wcast-qual -Werror -Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings -Wno-format-y2k -nostdinc in case you see something obvious. Right, MartinS