diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-22 05:23:33 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-06-22 05:23:33 +0000 |
commit | ad6c9a5853f72263ee79ceb7afb39e37e8697d85 (patch) | |
tree | 279c567a607717883b54fd2f58e33c32342072aa /gcc/final.c | |
parent | 9e2d273738166a11573320e220897da1bda74de1 (diff) | |
download | gcc-ad6c9a5853f72263ee79ceb7afb39e37e8697d85.tar.gz |
Warning fixes:
* Makefile.in (varasm.o): Depend on sdbout.h.
(sdbout.o): Depend on toplev.h.
* collect2.c (scan_prog_file): Cast fprintf argument to `long' and
use %ld specifier.
* final.c (shorten_branches): Cast first arg of `bzero' to char *.
* genextract.c (main): When creating insn-extract.c, mark variable
`i' with ATTRIBUTE_UNUSED.
* genpeep.c (main): When creating insn-peep.c, mark variables
`insn', `x' and `pat' with ATTRIBUTE_UNUSED.
* objc/init.c (__objc_tree_print): Wrap function definition in
macro `DEBUG'.
* objc/objc-act.c (encode_array): Cast sprintf argument to `long'
and use %ld specifier.
(adorn_decl): Likewise, twice.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@20650 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/final.c b/gcc/final.c index 79990bc2356..ca6c22037d8 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -1028,7 +1028,7 @@ shorten_branches (first) min_labelno = get_first_label_num (); label_align = (struct label_alignment *) xmalloc ( (max_labelno - min_labelno + 1) * sizeof (struct label_alignment)); - bzero (label_align, + bzero ((char *) label_align, (max_labelno - min_labelno + 1) * sizeof (struct label_alignment)); uid_shuid = (int *) xmalloc (max_uid * sizeof *uid_shuid); |