From: Dave Airlie Date: Fri, 17 May 2019 01:25:48 +0000 (+1000) Subject: glsl: init non-static class member in link uniforms. (v2) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bfe5b85561f9317ad2ce28baa06e06155ea3fe7;p=mesa.git glsl: init non-static class member in link uniforms. (v2) link_uniforms.cpp:477: uninit_member: Non-static class member "shader_storage_blocks_write_access" is not initialized in this constructor nor in any functions that it calls. Reported by coverity. v2: fix 9->0 typo (Ilia) Acked-by: Ilia Mirkin --- diff --git a/src/compiler/glsl/link_uniforms.cpp b/src/compiler/glsl/link_uniforms.cpp index aa96227a7e1..d588f3fc190 100644 --- a/src/compiler/glsl/link_uniforms.cpp +++ b/src/compiler/glsl/link_uniforms.cpp @@ -472,7 +472,8 @@ public: bool use_std430_as_default) : prog(prog), map(map), uniforms(uniforms), use_std430_as_default(use_std430_as_default), values(values), - bindless_targets(NULL), bindless_access(NULL) + bindless_targets(NULL), bindless_access(NULL), + shader_storage_blocks_write_access(0) { }