From 21cc9b1f2b62c5d6b58baf038f00d19fae4d1583 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Wed, 13 Sep 2017 20:49:27 +0200 Subject: [PATCH] TrigFTKBankGen: Fix compilation warning. Compilation warning: Variable-length arrays are not standard C++. --- Trigger/TrigFTK/TrigFTKBankGen/src/FTKConstGenAlgo.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Trigger/TrigFTK/TrigFTKBankGen/src/FTKConstGenAlgo.cxx b/Trigger/TrigFTK/TrigFTKBankGen/src/FTKConstGenAlgo.cxx index 673ef46820b..357853479d1 100644 --- a/Trigger/TrigFTK/TrigFTKBankGen/src/FTKConstGenAlgo.cxx +++ b/Trigger/TrigFTK/TrigFTKBankGen/src/FTKConstGenAlgo.cxx @@ -1649,7 +1649,7 @@ void FTKConstGenAlgo::extract_1stStage() Mtmp.Coto=tmpCoto, Mtmp.Z=tmpZ,Mtmp.nhit=nhit; // check if the module belongs to endcap (for endcap inversion.). - bool isEndcap[nplane]={0}; + std::vector<bool> isEndcap (nplane); for(int plane_idx_2nd_stage = 0;plane_idx_2nd_stage<nplane;plane_idx_2nd_stage++){ if(m_ITkMode){ -- GitLab