mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-27 21:20:27 -04:00
fixed warnings about ignored return value and wrong format code in printf
This commit is contained in:
parent
0c1d22a974
commit
8fedba4d91
@ -362,7 +362,7 @@ void do_file_filter(
|
||||
n_samps_buf = 8*4096/sizeof(kffsamp_t);
|
||||
n_samps_buf = nfft + 4*(nfft-n_imp_resp+1);
|
||||
|
||||
if (verbose) fprintf(stderr,"bufsize=%d\n",sizeof(kffsamp_t)*n_samps_buf );
|
||||
if (verbose) fprintf(stderr,"bufsize=%d\n",(int)(sizeof(kffsamp_t)*n_samps_buf) );
|
||||
|
||||
|
||||
/*allocate space and initialize pointers */
|
||||
@ -449,10 +449,12 @@ int main(int argc,char**argv)
|
||||
}
|
||||
fseek(filtfile,0,SEEK_END);
|
||||
nh = ftell(filtfile) / sizeof(kffsamp_t);
|
||||
if (verbose) fprintf(stderr,"%d samples in FIR filter\n",nh);
|
||||
if (verbose) fprintf(stderr,"%d samples in FIR filter\n",(int)nh);
|
||||
h = (kffsamp_t*)malloc(sizeof(kffsamp_t)*nh);
|
||||
fseek(filtfile,0,SEEK_SET);
|
||||
fread(h,sizeof(kffsamp_t),nh,filtfile);
|
||||
if (fread(h,sizeof(kffsamp_t),nh,filtfile) != nh)
|
||||
fprintf(stderr,"short read on filter file\n");
|
||||
|
||||
fclose(filtfile);
|
||||
|
||||
if (use_direct)
|
||||
|
Loading…
Reference in New Issue
Block a user