From 4e3e26a2edc35b05135ba75148c3cc0f291454de Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Tue, 14 May 2002 01:53:53 +0000 Subject: [PATCH] Merge c-common.c rev 1.10 into GCC 3.1 Clarify that the "yields only last 2 digits of year in some locales" warning does not apply to BSD. Submitted by: ache --- contrib/gcc/c-format.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contrib/gcc/c-format.c b/contrib/gcc/c-format.c index d52cfba7c70..a5dc89cb80c 100644 --- a/contrib/gcc/c-format.c +++ b/contrib/gcc/c-format.c @@ -19,6 +19,8 @@ along with GCC; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* $FreeBSD$ */ + #include "config.h" #include "system.h" #include "tree.h" @@ -2112,7 +2114,7 @@ check_format_info_main (status, res, info, format_chars, format_length, else if (strchr (fci->flags2, '2') != 0) y2k_level = 2; if (y2k_level == 3) - status_warning (status, "`%%%c' yields only last 2 digits of year in some locales", + status_warning (status, "`%%%c' yields only last 2 digits of year in some locales on non-BSD systems", format_char); else if (y2k_level == 2) status_warning (status, "`%%%c' yields only last 2 digits of year", format_char);