fix set but unused warnings
[openssl.git] / fips / aes / fips_aesavs.c
index bbdb93aab933022c8c36ab291dd9e42b03989a24..fecaf990c609810a5569106d954331ce785f561d 100644 (file)
@@ -554,7 +554,7 @@ static int proc_file(char *rqfile, char *rspfile)
     FILE *afp = NULL, *rfp = NULL;
     char ibuf[2048];
     char tbuf[2048];
-    int ilen, len, ret = 0;
+    int len;
     char algo[8] = "";
     char amode[8] = "";
     char atest[8] = "";
@@ -605,7 +605,6 @@ static int proc_file(char *rqfile, char *rspfile)
     while (!err && (fgets(ibuf, sizeof(ibuf), afp)) != NULL)
        {
        tidy_line(tbuf, ibuf);
-       ilen = strlen(ibuf);
        /*      printf("step=%d ibuf=%s",step,ibuf); */
        switch (step)
            {
@@ -784,7 +783,7 @@ static int proc_file(char *rqfile, char *rspfile)
                    }
                else
                    {
-                   ret = AESTest(&ctx, amode, akeysz, aKey, iVec, 
+                   AESTest(&ctx, amode, akeysz, aKey, iVec, 
                                  dir,  /* 0 = decrypt, 1 = encrypt */
                                  plaintext, ciphertext, len);
                    OutputValue("CIPHERTEXT",ciphertext,len,rfp,
@@ -822,7 +821,7 @@ static int proc_file(char *rqfile, char *rspfile)
                    }
                else
                    {
-                   ret = AESTest(&ctx, amode, akeysz, aKey, iVec, 
+                   AESTest(&ctx, amode, akeysz, aKey, iVec, 
                                  dir,  /* 0 = decrypt, 1 = encrypt */
                                  plaintext, ciphertext, len);
                    OutputValue("PLAINTEXT",(unsigned char *)plaintext,len,rfp,
@@ -872,7 +871,7 @@ int main(int argc, char **argv)
     char *rqlist = "req.txt", *rspfile = NULL;
     FILE *fp = NULL;
     char fn[250] = "", rfn[256] = "";
-    int f_opt = 0, d_opt = 1;
+    int d_opt = 1;
     fips_algtest_init();
 
     if (argc > 1)
@@ -883,7 +882,6 @@ int main(int argc, char **argv)
            }
        else if (strcasecmp(argv[1], "-f") == 0)
            {
-           f_opt = 1;
            d_opt = 0;
            }
        else