From f13d486ee77c2ca8a2d27a3f42981171cd73f102 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sat, 30 Oct 2021 14:30:47 -0700 Subject: [PATCH] intel/compiler: Initialize SIMDSelectionTest member error. Fix defect reported by Coverity Scan. Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member error is not initialized in this constructor nor in any functions that it calls. Fixes: 7558340ebb6 ("intel/compiler: Add helpers to select SIMD for compute shaders") Signed-off-by: Vinson Lee Reviewed-by: Caio Marcelo de Oliveira Filho Part-of: --- src/intel/compiler/test_simd_selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/test_simd_selection.cpp b/src/intel/compiler/test_simd_selection.cpp index 6cbf9240a27..5783c328772 100644 --- a/src/intel/compiler/test_simd_selection.cpp +++ b/src/intel/compiler/test_simd_selection.cpp @@ -41,7 +41,7 @@ const bool not_spilled = false; class SIMDSelectionTest : public ::testing::Test { protected: - SIMDSelectionTest() { + SIMDSelectionTest() : error{NULL, NULL, NULL} { mem_ctx = ralloc_context(NULL); devinfo = rzalloc(mem_ctx, intel_device_info); prog_data = rzalloc(mem_ctx, struct brw_cs_prog_data);