Commit 152798a
committed
[Math] Fix variable length array warning in RMinimzer
Fix the following warning:
```txt
math/rtools/src/RMinimizer.cxx:28:19: error: variable length arrays in C++ are a Clang extension [-Werror,-Wvla-cxx-extension]
28 | double z[size];
| ^~~~
math/rtools/src/RMinimizer.cxx:28:19: note: read of non-const variable 'size' is not allowed in a constant expression
math/rtools/src/RMinimizer.cxx:26:23: note: declared here
26 | unsigned int size = y.GetNoElements();
| ^
```1 parent fa74d4f commit 152798a
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
29 | | - | |
30 | | - | |
| 28 | + | |
| 29 | + | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
| |||
0 commit comments