Cleanup -Wall warnings added with upgrade to version 1.03.

This commit is contained in:
Steve Price 1996-11-04 03:59:35 +00:00
parent 7e0d34dec8
commit defb499d08
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19381
4 changed files with 8 additions and 6 deletions

View File

@ -271,7 +271,7 @@ load_code (code)
addbyte ( (char) func);
else
{
addbyte ((func >> 8) & 0xff | 0x80);
addbyte (((func >> 8) & 0xff) | 0x80);
addbyte (func & 0xff);
}
if (*str == ',') str++;
@ -304,7 +304,7 @@ load_code (code)
addbyte (vaf_name);
else
{
addbyte ((vaf_name >> 8) & 0xff | 0x80);
addbyte (((vaf_name >> 8) & 0xff) | 0x80);
addbyte (vaf_name & 0xff);
}
break;

View File

@ -548,7 +548,7 @@ void
bc_add ( n1, n2, result)
bc_num n1, n2, *result;
{
bc_num sum;
bc_num sum = 0;
int cmp_res;
if (n1->n_sign == n2->n_sign)
@ -591,7 +591,7 @@ void
bc_sub ( n1, n2, result)
bc_num n1, n2, *result;
{
bc_num diff;
bc_num diff = 0;
int cmp_res;
if (n1->n_sign != n2->n_sign)

View File

@ -230,7 +230,7 @@ int
fpop()
{
fstack_rec *temp;
int retval;
int retval = 0;
if (fn_stack != NULL)
{
@ -451,7 +451,7 @@ store_var (var_name)
int var_name;
{
bc_var *var_ptr;
long temp;
long temp = 0;
char toobig;
if (var_name > 2)

View File

@ -579,6 +579,8 @@ lookup (name, namekind)
yyerror ("Too many variables");
exit (1);
}
return (0); /* NOT_REACHED */
}