Merge pull request #2359 from dneto0/fix-warn
Avoid spurious warning about uninit var
This commit is contained in:
commit
7ab4564696
@ -639,7 +639,7 @@ public:
|
|||||||
|
|
||||||
int addBlockName(const TString& name, const TType& type, int size)
|
int addBlockName(const TString& name, const TType& type, int size)
|
||||||
{
|
{
|
||||||
int blockIndex;
|
int blockIndex = 0;
|
||||||
if (type.isArray()) {
|
if (type.isArray()) {
|
||||||
TType derefType(type, 0);
|
TType derefType(type, 0);
|
||||||
for (int e = 0; e < type.getOuterArraySize(); ++e) {
|
for (int e = 0; e < type.getOuterArraySize(); ++e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user