From 069c7c8d3a6bfa30bc8fe1210c9175e7d7c2b983 Mon Sep 17 00:00:00 2001 From: obrien Date: Tue, 14 May 2002 01:53:53 +0000 Subject: 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(-) (limited to 'contrib/gcc/c-format.c') diff --git a/contrib/gcc/c-format.c b/contrib/gcc/c-format.c index d52cfba..a5dc89c 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); -- cgit v1.1