From owner-cvs-all@FreeBSD.ORG Sat May 3 14:44:33 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFD9737B401; Sat, 3 May 2003 14:44:32 -0700 (PDT) Received: from thalia.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86B2A43FDD; Sat, 3 May 2003 14:44:31 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b207.otenet.gr [212.205.244.215]) by thalia.otenet.gr (8.12.9/8.12.9) with ESMTP id h43LiSmX001640; Sun, 4 May 2003 00:44:28 +0300 (EEST) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.9/8.12.9) with ESMTP id h43LiRoP005361; Sun, 4 May 2003 00:44:27 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.9/8.12.9/Submit) id h43LiRIq005360; Sun, 4 May 2003 00:44:27 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 4 May 2003 00:44:27 +0300 From: Giorgos Keramidas To: Mark Murray Message-ID: <20030503214427.GA5192@gothmog.gr> References: <20030503212154.GA4826@gothmog.gr> <200305032130.h43LUJ8c022020@grimreaper.grondar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200305032130.h43LUJ8c022020@grimreaper.grondar.org> cc: cvs-src@freebsd.org cc: src-committers@freebsd.org cc: cvs-all@freebsd.org Subject: Re: cvs commit: src/bin/ls extern.h ls.c print.c util.c src/bin/pax ar_io.c ar_subs.c cache.c cpio.c extern.h gen_subs.c getoldopt.c options.c pat_rep.c pax.c pax.h src/bin/ps fmt.c src/bin/rcp rcp.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 May 2003 21:44:33 -0000 On 2003-05-03 22:30, Mark Murray wrote: > > Can you play around with WARNS=N (N=0..6) and -ansi|-std=(c89|c99) to see > what combination gives the problem? Plain -Wall gives the warnings. Apparently, any WARNS-level >= 1 now includes -Werror, which makes these warnings fatal. : giorgos@gothmog[00:36]/a/freebsd/src/bin/ps$ rm print.o : giorgos@gothmog[00:36]/a/freebsd/src/bin/ps$ make WARNS=0 print.o : cc -O2 -Wall -pipe -DLAZY_PS -c print.c : print.c: In function `started': : print.c:405: warning: `%y' yields only last 2 digits of year : print.c: In function `lstarted': : print.c:422: warning: `%c' yields only last 2 digits of year in some locales on non-BSD systems : : giorgos@gothmog[00:36]/a/freebsd/src/bin/ps$ rm print.o : giorgos@gothmog[00:36]/a/freebsd/src/bin/ps$ make WARNS=1 print.o : cc -O2 -Wall -pipe -DLAZY_PS -Wsystem-headers -Werror -c print.c : cc1: warnings being treated as errors : print.c: In function `started': : print.c:405: warning: `%y' yields only last 2 digits of year : print.c: In function `lstarted': : print.c:422: warning: `%c' yields only last 2 digits of year in some locales on non-BSD systems : *** Error code 1 : : Stop in /home/giorgos/a/freebsd/src/bin/ps. : : giorgos@gothmog[00:36]/a/freebsd/src/bin/ps$ The warnings are a result of -Wformat-y2k, which is included in -Wall: : giorgos@gothmog[00:42]/a/freebsd/src/bin/ps$ rm print.o : giorgos@gothmog[00:42]/a/freebsd/src/bin/ps$ make CFLAGS='-Wall -Wno-format-y2k' print.o : cc -Wall -Wno-format-y2k -c print.c : : giorgos@gothmog[00:42]/a/freebsd/src/bin/ps$ rm print.o : giorgos@gothmog[00:42]/a/freebsd/src/bin/ps$ make CFLAGS='-Wall' print.o : cc -Wall -c print.c : print.c: In function `started': : print.c:405: warning: `%y' yields only last 2 digits of year : print.c: In function `lstarted': : print.c:422: warning: `%c' yields only last 2 digits of year in some locales on non-BSD systems : : giorgos@gothmog[00:42]/a/freebsd/src/bin/ps$