* infrun.c (signals_info), target.c (target_signal_from_name):

Use ugly casts to avoid enumvar < enumvar or enumvar++.
This commit is contained in:
Jim Kingdon
1994-01-18 19:13:38 +00:00
parent 0c205af2c5
commit db4340a625
2 changed files with 9 additions and 1 deletions

View File

@@ -1656,7 +1656,10 @@ signals_info (signum_exp, from_tty)
}
printf_filtered ("\n");
for (oursig = 0; oursig < TARGET_SIGNAL_LAST; ++oursig)
/* These ugly casts brought to you by the native VAX compiler. */
for (oursig = 0;
(int)oursig < (int)TARGET_SIGNAL_LAST;
oursig = (enum target_signal)((int)oursig + 1))
{
QUIT;