Menu

#3 Compiler warnings in fft

1.0
open
nobody
fft (2)
2015-05-26
2015-05-26
No
keith$ ./buildit fft
======== fft ========
tb_fft.cpp:175:130: warning: format specifies type 'int' but the argument has type 'float' [-Wformat]
        fprintf(diff_file,"\nOutput missmatch[line:%d] Golden: %0.16f+i%0.f -- Output: %d+i%d",line, out_golden_real, out_golden_imag,  outfft_real, outfft_imag);
                                                                                       ~~                                               ^~~~~~~~~~~
                                                                                       %f
tb_fft.cpp:175:143: warning: format specifies type 'int' but the argument has type 'float' [-Wformat]
        fprintf(diff_file,"\nOutput missmatch[line:%d] Golden: %0.16f+i%0.f -- Output: %d+i%d",line, out_golden_real, out_golden_imag,  outfft_real, outfft_imag);
                                                                                           ~~                                                        ^~~~~~~~~~~
                                                                                           %f
2 warnings generated.

        SystemC 2.3.1-Accellera --- May 22 2015 16:50:30
        Copyright (c) 1996-2014 by all Contributors,
        ALL RIGHTS RESERVED

Discussion


Log in to post a comment.

MongoDB Logo MongoDB