Support Board
Date/Time: Thu, 28 Nov 2024 09:50:56 +0000
Post From: Errors rebuilding older indicator in v2363
[2023-05-19 14:00:08] |
jivetrader - Posts: 410 |
-- Starting remote build of Custom Studies Source files: EhlersAdaptiveStochastic.cpp. 64-bit -- 13:55:37 Allow time for the server to compile the files and build the DLL. The remote build did not succeed. Result: EhlersAdaptiveStochastic.cpp: In function 'void scsf_EhlAdaptiveStochastic(SCStudyInterfaceRef)': EhlersAdaptiveStochastic.cpp:139:36: warning: iteration 38 invokes undefined behavior [-Waggressive-loop-optimizations] 139 | SqSum[period] = CosinePart[period] * CosinePart[period] + SinePart[period] * SinePart[period]; | ~~~~~~~~~~~~~~~~~^ EhlersAdaptiveStochastic.cpp:129:31: note: within this loop 129 | for (int period = 10; period <= 48; period++) | ~~~~~~~^~~~~ EhlersAdaptiveStochastic.cpp:136:52: warning: iteration 45 invokes undefined behavior [-Waggressive-loop-optimizations] 136 | CosinePart[period] = CosinePart[period] + Corr[n] * cos(2 * pi * n / period); | ~~~~~~^ EhlersAdaptiveStochastic.cpp:134:20: note: within this loop 134 | for(int n = 3; n <= 48; n++) | ~~^~~~~ EhlersAdaptiveStochastic.cpp:144:29: warning: iteration 38 invokes undefined behavior [-Waggressive-loop-optimizations] 144 | R[period][2] = R[period][1]; | ~~~~~~~~~~~^ EhlersAdaptiveStochastic.cpp:142:31: note: within this loop 142 | for (int period = 10; period <= 48; period++) | ~~~~~~~^~~~~ EhlersAdaptiveStochastic.cpp:151:18: warning: iteration 38 invokes undefined behavior [-Waggressive-loop-optimizations] 151 | if (R[period][1] > maxPwr) | ~~~~~~~~~~~^ EhlersAdaptiveStochastic.cpp:150:31: note: within this loop 150 | for (int period = 10; period <= 48; period++) | ~~~~~~~^~~~~ EhlersAdaptiveStochastic.cpp:155:28: warning: iteration 45 invokes undefined behavior [-Waggressive-loop-optimizations] 155 | Pwr[period] = R[period][1] / maxPwr; | ~~~~~~~~~~~^ EhlersAdaptiveStochastic.cpp:154:30: note: within this loop 154 | for (int period = 3; period <= 48; period++) | ~~~~~~~^~~~~ EhlersAdaptiveStochastic.cpp:161:17: warning: iteration 38 invokes undefined behavior [-Waggressive-loop-optimizations] 161 | if (Pwr[period] >= .5) | ~~~~~~~~~~^ EhlersAdaptiveStochastic.cpp:160:31: note: within this loop 160 | for (int period = 10; period <= 48; period++) | ~~~~~~~^~~~~ -- End of Build -- 13:55:41 |
EhlersAdaptiveStochastic.cpp - Attached On 2023-05-19 13:59:19 UTC - Size: 6 KB - 183 views Attachment Deleted. |