Module: Mesa Branch: master Commit: 4bd0df0e4a8cd600c17a01b3bf297b0d06cb6e44 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4bd0df0e4a8cd600c17a01b3bf297b0d06cb6e44
Author: Vinson Lee <[email protected]> Date: Tue Sep 22 17:41:35 2020 -0700 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 <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6830> --- 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) { } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
