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

@@ -378,7 +378,6 @@ int argc ;
char **argv ;
{
char *ptr ;
int i ;
v->progname = argv[0] ; /* Save programs name. */
v->appname = NULL ;
@@ -476,7 +475,7 @@ int
get_index(ch)
char ch ;
{
int n, val ;
int n ;
for (n = 0; n < TITEMS; n++) {
if (ch == buttons[n].value)
@@ -1253,9 +1252,9 @@ int
matherr(exc) /* Default math library exception handling routine. */
struct exception *exc ;
{
#if 0
char msg[100];
#if 0
if (exc) {
strcpy(msg, exc->name);
strcat(msg, ": ");
@@ -1775,9 +1774,7 @@ void
write_resources(filename)
char *filename;
{
char regval[5] ;
char intval[5] ;
int i;
int MPtemp[MP_SIZE];
SPRINTF(intval, "%d", v->accuracy) ;