From fbbfc09471e186a6c0214927907c22c1d07987e7 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Thu, 19 Oct 2023 17:26:48 +0200 Subject: [PATCH] fix warning for prev_val (variable size array) in tests --- slsDetectorSoftware/tests/test-CmdProxy-gotthard2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slsDetectorSoftware/tests/test-CmdProxy-gotthard2.cpp b/slsDetectorSoftware/tests/test-CmdProxy-gotthard2.cpp index 1be0fb46ca..ccc5c9410f 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-gotthard2.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-gotthard2.cpp @@ -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>> prev_val(ndet, std::vector>(nchip, std::vector(nadc))); for (int i = 0; i != ndet; ++i) { for (int j = 0; j != nchip; ++j) { for (int k = 0; k != nadc; ++k) {