Module: Mesa Branch: master Commit: e29fb8e80f1d4f0f105eb6b5a27bdacd03fb9136 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e29fb8e80f1d4f0f105eb6b5a27bdacd03fb9136
Author: Vinson Lee <[email protected]> Date: Thu Oct 15 17:25:50 2020 -0700 amd/addrlib: Initialize Gfx10Lib members in constructor. Fix defects reported by Coverity Scan. Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member m_numPkrLog2 is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member m_numSaLog2 is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7178> --- src/amd/addrlib/src/gfx10/gfx10addrlib.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/addrlib/src/gfx10/gfx10addrlib.cpp b/src/amd/addrlib/src/gfx10/gfx10addrlib.cpp index 6f44e37ee65..a29f848d83a 100644 --- a/src/amd/addrlib/src/gfx10/gfx10addrlib.cpp +++ b/src/amd/addrlib/src/gfx10/gfx10addrlib.cpp @@ -125,6 +125,8 @@ const Dim3d Gfx10Lib::Block4K_Log2_3d[] = {{4, 4, 4}, {3, 4, 4}, {3, 4, 3}, {3, Gfx10Lib::Gfx10Lib(const Client* pClient) : Lib(pClient), + m_numPkrLog2(0), + m_numSaLog2(0), m_colorBaseIndex(0), m_xmaskBaseIndex(0), m_dccBaseIndex(0) _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
