summaryrefslogtreecommitdiff
path: root/libcpp
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-28 06:55:47 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2005-03-28 06:55:47 +0000
commit3827dee50316c68e7d44f922785fe8e6a14490bd (patch)
treecf72665708b8e1dceb381cf30903e62e415cf3a4 /libcpp
parentf8d9d6a03d24c6a42a1a813a25e63ac308062869 (diff)
downloadgcc-3827dee50316c68e7d44f922785fe8e6a14490bd.tar.gz
* lex.c (warn_about_normalization): Cast field width to int to
avoid warning. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@97126 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcpp')
-rw-r--r--libcpp/ChangeLog5
-rw-r--r--libcpp/lex.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/libcpp/ChangeLog b/libcpp/ChangeLog
index 28fac2e1072..99476d0c89f 100644
--- a/libcpp/ChangeLog
+++ b/libcpp/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-28 Andreas Jaeger <aj@suse.de>
+
+ * lex.c (warn_about_normalization): Cast field width to int to
+ avoid warning.
+
2005-03-19 Joseph S. Myers <joseph@codesourcery.com>
* configure.ac: Consistently use solaris2.1[0-9]* instead of
diff --git a/libcpp/lex.c b/libcpp/lex.c
index 289f7b35033..58e559fd9fd 100644
--- a/libcpp/lex.c
+++ b/libcpp/lex.c
@@ -1,5 +1,5 @@
/* CPP Library - lexical analysis.
- Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
Contributed by Per Bothner, 1994-95.
Based on CCCP program by Paul Rubin, June 1986
Adapted to ANSI C, Richard Stallman, Jan 1987
@@ -445,10 +445,10 @@ warn_about_normalization (cpp_reader *pfile,
sz = cpp_spell_token (pfile, token, buf, false) - buf;
if (NORMALIZE_STATE_RESULT (s) == normalized_C)
cpp_error_with_line (pfile, CPP_DL_WARNING, token->src_loc, 0,
- "`%.*s' is not in NFKC", sz, buf);
+ "`%.*s' is not in NFKC", (int) sz, buf);
else
cpp_error_with_line (pfile, CPP_DL_WARNING, token->src_loc, 0,
- "`%.*s' is not in NFC", sz, buf);
+ "`%.*s' is not in NFC", (int) sz, buf);
}
}