From 4bd0df0e4a8cd600c17a01b3bf297b0d06cb6e44 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Tue, 22 Sep 2020 17:41:35 -0700 Subject: [PATCH] r600/sfn: Initialize GPRValue member m_pin_to_channel. Fix defects reported by Coverity Scan. Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member m_pin_to_channel is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Vinson Lee Reviewed-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp b/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp index dba5c0468e4..f4dcb68ca2f 100644 --- a/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp @@ -38,7 +38,8 @@ GPRValue::GPRValue(uint32_t sel, uint32_t chan, int base_offset): Value(Value::gpr, chan), m_sel(sel), m_base_offset(base_offset), - m_input(false) + m_input(false), + m_pin_to_channel(false) { } @@ -46,7 +47,8 @@ GPRValue::GPRValue(uint32_t sel, uint32_t chan): Value(Value::gpr, chan), m_sel(sel), m_base_offset(0), - m_input(false) + m_input(false), + m_pin_to_channel(false) { }