Merge pull request #2359 from dneto0/fix-warn

Avoid spurious warning about uninit var
This commit is contained in:
John Kessenich
2020-07-28 08:39:26 -06:00
committed by GitHub

View File

@@ -639,7 +639,7 @@ public:
int addBlockName(const TString& name, const TType& type, int size)
{
int blockIndex;
int blockIndex = 0;
if (type.isArray()) {
TType derefType(type, 0);
for (int e = 0; e < type.getOuterArraySize(); ++e) {