summaryrefslogtreecommitdiff
path: root/gcc/ch/grant.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1998-09-30 16:34:45 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1998-09-30 16:34:45 +0000
commit5efaf7b00ee3751680bffd751fa86eed6007c46a (patch)
tree7810d6f845ef11b472b49bcda7839846716a29be /gcc/ch/grant.c
parent5abb0464be9c333dc30d10aed65964005857f5ca (diff)
downloadgcc-5efaf7b00ee3751680bffd751fa86eed6007c46a.tar.gz
Warning fixes:
* actions.c (id_cmp): Do pointer arithmetic as `long' not `int' to ensure enough bits for calculation. * ch-tree.h (check_text_length): Remove unused parameter. * convert.c (display_int_cst): Cast a HOST_WIDE_INT argument to function sprintf into the appropriate type for printing. * decl.c (print_lang_decl): Use HOST_WIDE_INT_PRINT_DEC as the format specifier. (print_mode): Likewise. (init_decl_processing): Cast the arguments of bcopy/bzero to char *. * grant.c (grant_array_type): Use HOST_WIDE_INT_PRINT_DEC as the format specifier. * inout.c (check_text_length): Remove unused parameter `type'. (build_chill_associate): Initialize variables `arg1', `arg2', `arg3', `arg4' and `arg5'. (build_chill_modify): Likewise. (scanformcont): Change type of variable `curr' to `unsigned char'. * lex.c (maybe_downcase): Cast the argument of `tolower' to `unsigned char'. * satisfy.c (satisfy): Remove unused parameter in call to `check_text_length'. * tasking.c (generate_tasking_code_variable): Pass a HOST_WIDE_INT as a `long' in call to function `error'. (decl_tasking_code_variable): Likewise. From-SVN: r22679
Diffstat (limited to 'gcc/ch/grant.c')
-rw-r--r--gcc/ch/grant.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/ch/grant.c b/gcc/ch/grant.c
index 81162f0eed4..ada788c57e7 100644
--- a/gcc/ch/grant.c
+++ b/gcc/ch/grant.c
@@ -270,7 +270,8 @@ grant_array_type (type)
if (TREE_CODE (maxval) == INTEGER_CST)
{
char wrk[20];
- sprintf (wrk, "%d", TREE_INT_CST_LOW (maxval) + 1);
+ sprintf (wrk, HOST_WIDE_INT_PRINT_DEC,
+ TREE_INT_CST_LOW (maxval) + 1);
APPEND (result, wrk);
}
else if (TREE_CODE (maxval) == MINUS_EXPR