Skip to content

Commit 7ab4564

Browse files
authored
Merge pull request KhronosGroup#2359 from dneto0/fix-warn
Avoid spurious warning about uninit var
2 parents 3ee5f2f + 01f2de5 commit 7ab4564

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glslang/MachineIndependent/reflection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ class TReflectionTraverser : public TIntermTraverser {
639639

640640
int addBlockName(const TString& name, const TType& type, int size)
641641
{
642-
int blockIndex;
642+
int blockIndex = 0;
643643
if (type.isArray()) {
644644
TType derefType(type, 0);
645645
for (int e = 0; e < type.getOuterArraySize(); ++e) {

0 commit comments

Comments
 (0)