Browse Source

clear warning, unused var

richarddobson 1 month ago
parent
commit
ea095006c4
2 changed files with 4 additions and 4 deletions
  1. 2 2
      dev/standalone/wrappage.c
  2. 2 2
      dev/texture/ap_texture.c

+ 2 - 2
dev/standalone/wrappage.c

@@ -1598,7 +1598,7 @@ int renormalise(int nctr,dataptr dz)
 {
 {
     int exit_status;
     int exit_status;
     int n, m = 0;
     int n, m = 0;
-    int total_samps_read = 0;
+//    int total_samps_read = 0;
     int samp_total = dz->total_samps_written, samps_remaining;
     int samp_total = dz->total_samps_written, samps_remaining;
     double min_norm  = dz->parray[WRAP_NORMFACT][0];        /* 1 */
     double min_norm  = dz->parray[WRAP_NORMFACT][0];        /* 1 */
     float  *s = NULL;
     float  *s = NULL;
@@ -1664,7 +1664,7 @@ int renormalise(int nctr,dataptr dz)
             close_and_delete_tempfile(dz->outfilename,dz);
             close_and_delete_tempfile(dz->outfilename,dz);
             return(exit_status);
             return(exit_status);
         }                                                                                       /* 8 */
         }                                                                                       /* 8 */
-        total_samps_read += dz->ssampsread;
+//        total_samps_read += dz->ssampsread;
         if(min_norm < 1.0) {
         if(min_norm < 1.0) {
             nf  = (dz->parray[WRAP_NORMFACT])[m];
             nf  = (dz->parray[WRAP_NORMFACT])[m];
             for(n=0;n<cnt;n++)                                                      /* 9 */
             for(n=0;n<cnt;n++)                                                      /* 9 */

+ 2 - 2
dev/texture/ap_texture.c

@@ -489,9 +489,9 @@ int usage1(void)
     "MORE??? ----- (hit keyboard)\n"
     "MORE??? ----- (hit keyboard)\n"
     "\n");
     "\n");
 
 
-    while(!_kbhit())
+    while(!kbhit())
         ;
         ;
-    if(_kbhit()) {
+    if(kbhit()) {
 #else
 #else
     "\n");
     "\n");
 #endif
 #endif