Internals: Fix cppcheck warnings

This commit is contained in:
Wilson Snyder
2023-08-31 18:29:58 -04:00
parent ffbbd438ae
commit 8c480fd39e
9 changed files with 24 additions and 15 deletions
+1
View File
@@ -248,6 +248,7 @@ private:
adtypep,
"Array extraction with width miscomputed " << adtypep->width() << "/"
<< fromRange.elements());
// cppcheck-suppress zerodivcond
const int elwidth = adtypep->width() / fromRange.elements();
AstSel* const newp = new AstSel{
nodep->fileline(), fromp,