Skip to content

Commit

Permalink
fix warning for prev_val (variable size array) in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thattil committed Oct 23, 2023
1 parent 1892963 commit fbbfc09
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slsDetectorSoftware/tests/test-CmdProxy-gotthard2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,10 +689,10 @@ TEST_CASE("confadc", "[.cmd]") {
auto det_type = det.getDetectorType().squash();

if (det_type == defs::GOTTHARD2) {
int ndet = det.size();
int nchip = 10;
int nadc = 32;
int prev_val[ndet][nchip][nadc];
const int ndet = det.size();
const int nchip = 10;
const int nadc = 32;
std::vector<std::vector<std::vector<int>>> prev_val(ndet, std::vector<std::vector<int>>(nchip, std::vector<int>(nadc)));
for (int i = 0; i != ndet; ++i) {
for (int j = 0; j != nchip; ++j) {
for (int k = 0; k != nadc; ++k) {
Expand Down

0 comments on commit fbbfc09

Please sign in to comment.