From 296433e1a9e3c644fec1f1805dd595555683d9a0 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 22 Jun 1998 05:23:33 +0000 Subject: 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. From-SVN: r20650 --- gcc/genpeep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/genpeep.c') diff --git a/gcc/genpeep.c b/gcc/genpeep.c index fd39398..ab65df7 100644 --- a/gcc/genpeep.c +++ b/gcc/genpeep.c @@ -481,7 +481,7 @@ from the machine description file `md'. */\n\n"); printf ("#define operands peep_operand\n\n"); printf ("rtx\npeephole (ins1)\n rtx ins1;\n{\n"); - printf (" rtx insn, x, pat;\n\n"); + printf (" rtx insn ATTRIBUTE_UNUSED, x ATTRIBUTE_UNUSED, pat ATTRIBUTE_UNUSED;\n\n"); /* Early out: no peepholes for insns followed by barriers. */ printf (" if (NEXT_INSN (ins1)\n"); -- cgit v1.1