X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: Message-Id: <200412301150.iBUBodWS008346@speedy.ludd.ltu.se> Subject: Re: tests/libc/ansi/time/makefile problems In-Reply-To: <3eh7t019mbd6q4j21t5pvuamikmq9clo3g@4ax.com> "from Brian Inglis at Dec 30, 2004 04:02:17 am" To: djgpp-workers AT delorie DOT com Date: Thu, 30 Dec 2004 12:50:39 +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: > On Sun, 31 Oct 2004 12:10:21 +0100 (CET), ams AT ludd DOT ltu DOT se wrote: > >> >> >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. > > Should work or you should get a compiler option warning. Alas, neither. Doesn't work and no warning (except then one that I'm trying to get rid of). Right, MartinS