aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2001-11-09 23:08:36 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2001-11-09 23:08:36 +0000
commit4fdc14caaaf554bb43118238ab3ef90abaa86c45 (patch)
treec63083965e6e8be7dd0f8cfd1e3b50fd6ae2a385
parent50e9f73a3b5ee13f26e759a6927ed24a41462050 (diff)
downloadgcc-4fdc14caaaf554bb43118238ab3ef90abaa86c45.zip
gcc-4fdc14caaaf554bb43118238ab3ef90abaa86c45.tar.gz
gcc-4fdc14caaaf554bb43118238ab3ef90abaa86c45.tar.bz2
* class.c (dump_array): Fix format specifier warning.
From-SVN: r46903
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/class.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index c2f51e6..a98e62b 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,7 @@
+2001-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * class.c (dump_array): Fix format specifier warning.
+
2001-11-09 Neil Booth <neil@daikokuya.demon.co.uk>
* cp-lang.c (LANG_HOOKS_NAME): Override.
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index fe43d82..68ab3a3 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -6805,7 +6805,7 @@ dump_array (stream, decl)
for (ix = 0, inits = TREE_OPERAND (DECL_INITIAL (decl), 1);
inits; ix++, inits = TREE_CHAIN (inits))
- fprintf (stream, "%-4d %s\n", ix * elt,
+ fprintf (stream, "%-4ld %s\n", (long)(ix * elt),
expr_as_string (TREE_VALUE (inits), TFF_PLAIN_IDENTIFIER));
}