diff options
author | steve <steve@FreeBSD.org> | 1996-11-04 03:59:35 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1996-11-04 03:59:35 +0000 |
commit | 0be58f23d8dd463dea864d0ad7a6fb8fcb617d73 (patch) | |
tree | b1c5f67c78bd88be994ff86888dbfa2bd699f6b1 /gnu/usr.bin/bc | |
parent | ef6f1644ef0f9d0b3a17f8e271db61d6a070036d (diff) | |
download | FreeBSD-src-0be58f23d8dd463dea864d0ad7a6fb8fcb617d73.zip FreeBSD-src-0be58f23d8dd463dea864d0ad7a6fb8fcb617d73.tar.gz |
Cleanup -Wall warnings added with upgrade to version 1.03.
Diffstat (limited to 'gnu/usr.bin/bc')
-rw-r--r-- | gnu/usr.bin/bc/load.c | 4 | ||||
-rw-r--r-- | gnu/usr.bin/bc/number.c | 4 | ||||
-rw-r--r-- | gnu/usr.bin/bc/storage.c | 4 | ||||
-rw-r--r-- | gnu/usr.bin/bc/util.c | 2 |
4 files changed, 8 insertions, 6 deletions
diff --git a/gnu/usr.bin/bc/load.c b/gnu/usr.bin/bc/load.c index 96b248a..53466e5 100644 --- a/gnu/usr.bin/bc/load.c +++ b/gnu/usr.bin/bc/load.c @@ -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; diff --git a/gnu/usr.bin/bc/number.c b/gnu/usr.bin/bc/number.c index 5f3aa39..ce078fe 100644 --- a/gnu/usr.bin/bc/number.c +++ b/gnu/usr.bin/bc/number.c @@ -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) diff --git a/gnu/usr.bin/bc/storage.c b/gnu/usr.bin/bc/storage.c index 5e65568..b4ed270 100644 --- a/gnu/usr.bin/bc/storage.c +++ b/gnu/usr.bin/bc/storage.c @@ -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) diff --git a/gnu/usr.bin/bc/util.c b/gnu/usr.bin/bc/util.c index 8957908..fe7315a 100644 --- a/gnu/usr.bin/bc/util.c +++ b/gnu/usr.bin/bc/util.c @@ -579,6 +579,8 @@ lookup (name, namekind) yyerror ("Too many variables"); exit (1); } + + return (0); /* NOT_REACHED */ } |