aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1996-11-04 03:59:35 +0000
committerSteve Price <steve@FreeBSD.org>1996-11-04 03:59:35 +0000
commitdefb499d08778f1744c4fb6a1658fac7dce07f0d (patch)
treeb1c5f67c78bd88be994ff86888dbfa2bd699f6b1 /gnu
parent7e0d34dec8de808d437e1abea799b1d12915f354 (diff)
downloadsrc-defb499d08778f1744c4fb6a1658fac7dce07f0d.tar.gz
src-defb499d08778f1744c4fb6a1658fac7dce07f0d.zip
Cleanup -Wall warnings added with upgrade to version 1.03.
Notes
Notes: svn path=/head/; revision=19381
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/bc/load.c4
-rw-r--r--gnu/usr.bin/bc/number.c4
-rw-r--r--gnu/usr.bin/bc/storage.c4
-rw-r--r--gnu/usr.bin/bc/util.c2
4 files changed, 8 insertions, 6 deletions
diff --git a/gnu/usr.bin/bc/load.c b/gnu/usr.bin/bc/load.c
index 96b248aacbd8..53466e58c0b6 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 5f3aa3914fb0..ce078fe28912 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 5e65568c5ae9..b4ed2706b79c 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 89579081636c..fe7315af511e 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 */
}