dtcalc: Resolve 43 warnings that would be introduced with -Wunused-variable or -Wall

Basically 43 local variables declared in functions and then never used.
This commit is contained in:
Peter Howkins
2012-11-05 16:44:29 +00:00
parent 2c10f0d62b
commit a0da2db479
5 changed files with 11 additions and 37 deletions

View File

@@ -76,8 +76,6 @@ do_accuracy() /* Set display accuracy. */
void
do_ascii() /* Convert ASCII value. */
{
int val ;
show_ascii_frame() ;
}
@@ -112,8 +110,7 @@ do_business() /* Perform special business mode calculations. */
Boolean need_show = TRUE;
char *display_number = NULL;
int MPbv[MP_SIZE], MP1[MP_SIZE], MP2[MP_SIZE], MP3[MP_SIZE], MP4[MP_SIZE] ;
int MP5[MP_SIZE];
int i, len, val, val2, accSav ;
int i, len, val, accSav ;
double result, w;
if (IS_KEY(v->current, KEY_CTRM))
@@ -1166,7 +1163,7 @@ do_portion()
void
do_shift() /* Perform bitwise shift on display value. */
{
int i, MPtemp[MP_SIZE], shift ;
int MPtemp[MP_SIZE], shift ;
BOOLEAN temp ;
double dval ;