Menu

#1 Compiler warnings in adpcm

1.0
open
nobody
None
2015-05-26
2015-05-26
No
keith$ clang -fsyntax-only adpcm/*.cpp -I ~/src/systemc/include/
adpcm/adpcm_encoder.cpp:147:11: warning: comparison of unsigned expression >= 0 is always true [-Wtautological-compare]
   if( enc>=0 && enc<=3 ) return 1;
       ~~~^ ~
1 warning generated.
adpcm/tb_adpcm_encoder.cpp:44:32: warning: format specifies type 'float *' but the argument has type 'unsigned int *' [-Wformat]
    while(fscanf(in_file,"%f", &indata) != EOF){
                          ~~   ^~~~~~~
                          %u
adpcm/tb_adpcm_encoder.cpp:144:76: warning: more '%' conversions than data arguments [-Wformat]
        fprintf(diff_file,"\nOutput missmatch[line:%d] Golden: %u -- Output: %d+i%d",line, out_golden, out_adpcm);   
                                                                                 ~^
2 warnings generated.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB