From: Alexis Hetu Date: Thu, 1 Feb 2018 17:17:52 +0000 (-0500) Subject: Fixed warnings treated as errors X-Git-Tag: android-x86-7.1-r3~142 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a02f8b1e0a78e4ac75caa96bf2125fdd798908f1;p=android-x86%2Fexternal-swiftshader.git Fixed warnings treated as errors Change-Id: I19de1f5e4e8a690afed2ac7fb2050659a90fa670 Reviewed-on: https://swiftshader-review.googlesource.com/16848 Reviewed-by: Alexis Hétu Tested-by: Alexis Hétu --- diff --git a/src/OpenGL/compiler/OutputASM.cpp b/src/OpenGL/compiler/OutputASM.cpp index fc076a7fb..f61dce14e 100644 --- a/src/OpenGL/compiler/OutputASM.cpp +++ b/src/OpenGL/compiler/OutputASM.cpp @@ -3182,9 +3182,9 @@ namespace glsl int requestedLocation = fragmentOutput->getType().getLayoutQualifier().location; if((requestedLocation >= 0) && (requestedLocation < sw::RENDERTARGETS)) { - if(fragmentOutputs.size() <= requestedLocation) + if(fragmentOutputs.size() <= (size_t)requestedLocation) { - while(fragmentOutputs.size() < requestedLocation) + while(fragmentOutputs.size() < (size_t)requestedLocation) { fragmentOutputs.push_back(nullptr); }