aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r--gcc/c-common.c3
1 files changed, 2 insertions, 1 deletions
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;