From b56973d1cd648391d190fb00eef0c60722ae1855 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 3 Nov 2009 11:45:00 +0000 Subject: c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC. 2009-11-03 Richard Guenther * c-common.c (fold_offsetof_1): Use HOST_WIDE_INT_PRINT_DEC. From-SVN: r153846 --- gcc/c-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/c-common.c') diff --git a/gcc/c-common.c b/gcc/c-common.c index 91de41c..50f316d 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -8403,7 +8403,8 @@ fold_offsetof_1 (tree expr, tree stop_ref) HOST_WIDE_INT index = int_cst_value (t); if (index > int_cst_value (nelts)) warning (OPT_Warray_bounds, - "index %ld denotes an offset greater than size of %qT", + "index " HOST_WIDE_INT_PRINT_DEC " denotes an offset " + "greater than size of %qT", index, TREE_TYPE (TREE_OPERAND (expr, 0))); } break; -- cgit v1.1