From 40029639575f6635a3de0712581eaece41483265 Mon Sep 17 00:00:00 2001 From: Charles Villard Date: Wed, 16 Aug 2023 17:24:54 +0200 Subject: [PATCH] fix: MMVII: compilation errors at init and array unbound --- MMVII/include/MMVII_Ptxd.h | 2 +- MMVII/include/SymbDer/SymbDer_Common.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/MMVII/include/MMVII_Ptxd.h b/MMVII/include/MMVII_Ptxd.h index f928868108..bfb7e5a4d7 100755 --- a/MMVII/include/MMVII_Ptxd.h +++ b/MMVII/include/MMVII_Ptxd.h @@ -61,7 +61,7 @@ template class cPtxd } /// Some function requires default constructor (serialization ?) - cPtxd() {} + cPtxd() : mCoords{} {} /* I would prefer not inline but : cannot make work explicit instance of a a specific method, and explicit of the whole class create problem diff --git a/MMVII/include/SymbDer/SymbDer_Common.h b/MMVII/include/SymbDer/SymbDer_Common.h index d39a1f3188..2eccf79673 100755 --- a/MMVII/include/SymbDer/SymbDer_Common.h +++ b/MMVII/include/SymbDer/SymbDer_Common.h @@ -433,6 +433,7 @@ template class cName2Calc { if (SVP) return nullptr; UserSError("Cannot extract allocator. Check that this application was recompiled after code generation",aName); + return nullptr; } return anIter->second; }