From: Andrew Cagney Date: Sat, 30 Aug 1997 00:01:12 +0000 (+0000) Subject: Passify GCC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4113ba4cd75baf802d84cb32f5d500082673ef41;p=binutils-gdb.git Passify GCC. --- diff --git a/sim/tic80/ChangeLog b/sim/tic80/ChangeLog index 448dba957d4..ea81861c17c 100644 --- a/sim/tic80/ChangeLog +++ b/sim/tic80/ChangeLog @@ -1,3 +1,8 @@ +Sat Aug 30 09:40:47 1997 Andrew Cagney + + * insns (do_trap): Unsigned `i' for unsigned iterator. + (do_trap): Ditto for comparison with getpid. + Wed Aug 27 18:13:22 1997 Andrew Cagney * configure: Regenerated to track ../common/aclocal.m4 changes. diff --git a/sim/tic80/insns b/sim/tic80/insns index fbbe6ff7d8e..dfe70c5bde9 100644 --- a/sim/tic80/insns +++ b/sim/tic80/insns @@ -1161,7 +1161,7 @@ void::function::do_trap:unsigned32 trap_number } case 4: /* WRITE */ { - int i; + unsigned i; if (GPR(2) == 1) for (i = 0; i < GPR(6); i++) { @@ -1189,7 +1189,7 @@ void::function::do_trap:unsigned32 trap_number break; } case 37: /* KILL */ - if (GPR (2) != getpid ()) + if ( GPR (2) != (unsigned) getpid ()) { int ret = kill (GPR(2), GPR(4)); if (ret < 0)