Login Page - Create Account

Support Board


Date/Time: Sun, 22 Dec 2024 12:38:19 +0000



[User Discussion] - Compiler warnings in scstructures.h

View Count: 1539

[2015-04-18 22:39:50]
eagle - Posts: 92
I was surprised to see these warnings:

In file included from sierrachart.h:15:0,
from MyStudy.cpp:1:
scstructures.h: In constructor 's_SCPositionData::s_SCPositionData()':
scstructures.h:992:6: warning: 's_SCPositionData::TotalQuantityFilled' will be initialized after [-Wreorder]
int TotalQuantityFilled;
^
scstructures.h:967:9: warning: 'double s_SCPositionData::MaximumOpenPositionLoss' [-Wreorder]
double MaximumOpenPositionLoss;
^
scstructures.h:1004:2: warning: when initialized here [-Wreorder]
s_SCPositionData()
^
scstructures.h: In constructor 's_SCSubgraph_260::s_SCSubgraph_260()':
scstructures.h:1508:15: warning: 's_SCSubgraph_260::LineLabel' will be initialized after [-Wreorder]
unsigned int LineLabel; // Line label Name/Value
^
scstructures.h:1494:15: warning: 'SCFloatArray s_SCSubgraph_260::Data' [-Wreorder]
SCFloatArray Data; // Array of data values
^
scstructures.h:1520:2: warning: when initialized here [-Wreorder]
s_SCSubgraph_260()
^
scstructures.h: In constructor 's_SCSubgraph_260::s_SCSubgraph_260(int)':
scstructures.h:1508:15: warning: 's_SCSubgraph_260::LineLabel' will be initialized after [-Wreorder]
unsigned int LineLabel; // Line label Name/Value
^
scstructures.h:1494:15: warning: 'SCFloatArray s_SCSubgraph_260::Data' [-Wreorder]
SCFloatArray Data; // Array of data values
^
scstructures.h:1548:11: warning: when initialized here [-Wreorder]
explicit s_SCSubgraph_260(int i)
^
See: http://stackoverflow.com/questions/1828037/whats-the-point-of-g-wreorder

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account