Browse Source

clear compiler warnings

richarddobson 3 months ago
parent
commit
d2d049e391
1 changed files with 3 additions and 3 deletions
  1. 3 3
      dev/misc/maxsamp2.c

+ 3 - 3
dev/misc/maxsamp2.c

@@ -1,5 +1,5 @@
 /*
 /*
- * Copyright (c) 1983-2020 Trevor Wishart and Composers Desktop Project Ltd
+ * Copyright (c) 1983-2023 Trevor Wishart and Composers Desktop Project Ltd
  * http://www.trevorwishart.co.uk
  * http://www.trevorwishart.co.uk
  * http://www.composersdesktop.com
  * http://www.composersdesktop.com
  *
  *
@@ -144,7 +144,7 @@ int get_max_samp(int ifd,int force_read)
     int totalsamps = 0;
     int totalsamps = 0;
     int mins;
     int mins;
     double sec;
     double sec;
-    int total_got = 0;
+//    int total_got = 0;
     int j;
     int j;
 
 
     switch(force_read) {
     switch(force_read) {
@@ -161,7 +161,7 @@ int get_max_samp(int ifd,int force_read)
     }
     }
     /* read and find maximum */
     /* read and find maximum */
     while( (got = fgetfbufEx(bigfbuf,(int) buflen,ifd,0)) > 0 ) {
     while( (got = fgetfbufEx(bigfbuf,(int) buflen,ifd,0)) > 0 ) {
-        total_got += got;
+//        total_got += got;
         find_fmax(bigfbuf,got,totalsamps);
         find_fmax(bigfbuf,got,totalsamps);
         totalsamps += got;
         totalsamps += got;
     }
     }