Commit d9952419 by John Kessenich

Merge pull request #226 from baldurk/warning-fixes

A couple of small warning fixes
parents 6e620c46 40289165
...@@ -2125,7 +2125,7 @@ void TGlslangToSpvTraverser::updateMemberOffset(const glslang::TType& /*structTy ...@@ -2125,7 +2125,7 @@ void TGlslangToSpvTraverser::updateMemberOffset(const glslang::TType& /*structTy
bool TGlslangToSpvTraverser::isShaderEntrypoint(const glslang::TIntermAggregate* node) bool TGlslangToSpvTraverser::isShaderEntrypoint(const glslang::TIntermAggregate* node)
{ {
// have to ignore mangling and just look at the base name // have to ignore mangling and just look at the base name
int firstOpen = node->getName().find('('); size_t firstOpen = node->getName().find('(');
return node->getName().compare(0, firstOpen, glslangIntermediate->getEntryPoint().c_str()) == 0; return node->getName().compare(0, firstOpen, glslangIntermediate->getEntryPoint().c_str()) == 0;
} }
......
...@@ -999,9 +999,9 @@ public: ...@@ -999,9 +999,9 @@ public:
qualifier.storage = EvqGlobal; qualifier.storage = EvqGlobal;
} }
void init(const TSourceLoc& loc, bool global = false) void init(const TSourceLoc& l, bool global = false)
{ {
initType(loc); initType(l);
sampler.clear(); sampler.clear();
initQualifiers(global); initQualifiers(global);
shaderQualifiers.init(); shaderQualifiers.init();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment