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
commit 7ab4564696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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) {