From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28778 invoked by alias); 12 Mar 2002 22:16:06 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 28754 invoked by uid 71); 12 Mar 2002 22:16:03 -0000 Date: Tue, 12 Mar 2002 14:16:00 -0000 Message-ID: <20020312221603.28751.qmail@sources.redhat.com> To: jsm28@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: "Joseph S. Myers" Subject: c/3190 Re: warning: `%y' yields only last 2 digits of year Reply-To: "Joseph S. Myers" X-SW-Source: 2002-03/txt/msg00401.txt.bz2 List-Id: The following reply was made to PR c/3190; it has been noted by GNATS. From: "Joseph S. Myers" To: Robert Dewar Cc: , , , Subject: c/3190 Re: warning: `%y' yields only last 2 digits of year Date: Tue, 12 Mar 2002 22:11:58 +0000 (GMT) On Tue, 12 Mar 2002, Robert Dewar wrote: > What a silly warning, and what an even sillier option. I sure agree with > Karel on this one, to whom could such a warning possibly be useful? It's a style warning, as with many other GCC warnings. It's of use if you consider that wanting to output 2-digit years is unusual and a bad idea. Of course they *can* be used safely, just as gets() can be used safely if you know exactly what input can be passed to the program, but that's unusual. The question of whether such warnings (and which such warnings) should be in -Wall is c/3190. In the reply to that PR I reqested feedback (especially from NetBSD's GCC maintainers) on which of the separate cases involved should be warned about when, but the PR hasn't yet received any. -- Joseph S. Myers jsm28@cam.ac.uk