summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2022-05-19 15:12:23 -0700
committerVinson Lee <vlee@freedesktop.org>2022-05-27 15:04:14 -0700
commitd0b421ee149eb33f78f79becafdfb49a362edc24 (patch)
treec459f6d293064490d8a1b3135c121d26a3aaaab2
parentd636188f25a10aa5daeba73623bd9625807901ff (diff)
llvmpipe: Initialize Variable member variable mType.
Fix defect reported by Coverity Scan. Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member mType is not initialized in this constructor nor in any functions that it calls. Fixes: 1d0af5e7c ("llvmpipe: Add tests designed to exercise llvmpipe linear rasterizer.") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/681>
-rw-r--r--tests/llvmpipe/glsl/variable.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/llvmpipe/glsl/variable.h b/tests/llvmpipe/glsl/variable.h
index ad12509b1..6622e6c4b 100644
--- a/tests/llvmpipe/glsl/variable.h
+++ b/tests/llvmpipe/glsl/variable.h
@@ -41,7 +41,7 @@ namespace glsl
public:
Variable()
- : mLocation(0)
+ : mType(BuiltIn), mLocation(0)
{
}