mirror of
https://github.com/KhronosGroup/glslang
synced 2024-09-20 04:40:01 +00:00
Avoid spurious warning about uninit var
This commit is contained in:
parent
3ee5f2f1d3
commit
01f2de512a
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user