Warning in GetHistPrices:SampleParams.cpp:69

Moderator: Moderator

Warning in GetHistPrices:SampleParams.cpp:69

Postby Al Bundy » Sat Nov 24, 2018 12:54 pm

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.
Al Bundy
 
Posts: 7
Joined: Sat Nov 24, 2018 11:41 am
Location: Marbella/Spain

Re: Warning in GetHistPrices:SampleParams.cpp:69

Postby Konstantin.Toporov » Mon Nov 26, 2018 1:36 pm

Looks like you are using a newer compiler and get a warning on some legacy thing.
Are there any problems with the program itself?
Konstantin.Toporov
FXCodeBase: Initiate
 
Posts: 113
Joined: Mon Aug 31, 2015 10:16 am

Re: Warning in GetHistPrices:SampleParams.cpp:69

Postby Al Bundy » Wed Dec 05, 2018 7:43 am

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.
Al Bundy
 
Posts: 7
Joined: Sat Nov 24, 2018 11:41 am
Location: Marbella/Spain


Return to ForexConnect API

Who is online

Users browsing this forum: No registered users and 8 guests