Page 1 of 1

Warning in GetHistPrices:SampleParams.cpp:69

PostPosted: Sat Nov 24, 2018 12:54 pm
by Al Bundy
Compiling it with g++ 8.2.0 generates this warning - how ever, it is a wrong code because NaN cannot be assigned to an integer variable:

SampleParams.cpp:69:22: warning: overflow in conversion from ‘double’ to ‘int’ changes value from ‘+QNaN’ to ‘0’ [-Woverflow]

May be it can be fixed in on of the next releases.

Re: Warning in GetHistPrices:SampleParams.cpp:69

PostPosted: Mon Nov 26, 2018 1:36 pm
by Konstantin.Toporov
Looks like you are using a newer compiler and get a warning on some legacy thing.
Are there any problems with the program itself?

Re: Warning in GetHistPrices:SampleParams.cpp:69

PostPosted: Wed Dec 05, 2018 7:43 am
by Al Bundy
Konstantin.Toporov wrote:Looks like you are using a newer compiler and get a warning on some legacy thing.
Are there any problems with the program itself?


As I wrote, I am using gcc 8.2.0 - which is the most recent compiler from the GNU collection. No, there is not any issue; it is just a warning because of an old include file which wasn't upgraded against the new compiler.

I will submit an issue in the GitHub network.