mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-25 09:20:30 +01:00
amd/addrlib: Initialize Lib members in constructors.
Fix defects reported by Coverity Scan. uninit_member: Non-static class member m_maxBaseAlign is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member m_maxMetaBaseAlign is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7768>
This commit is contained in:
parent
df0157dc69
commit
cf7bf7fade
1 changed files with 4 additions and 0 deletions
|
|
@ -107,6 +107,8 @@ Lib::Lib() :
|
|||
m_rowSize(0),
|
||||
m_minPitchAlignPixels(1),
|
||||
m_maxSamples(8),
|
||||
m_maxBaseAlign(0),
|
||||
m_maxMetaBaseAlign(0),
|
||||
m_pElemLib(NULL)
|
||||
{
|
||||
m_configFlags.value = 0;
|
||||
|
|
@ -132,6 +134,8 @@ Lib::Lib(const Client* pClient) :
|
|||
m_rowSize(0),
|
||||
m_minPitchAlignPixels(1),
|
||||
m_maxSamples(8),
|
||||
m_maxBaseAlign(0),
|
||||
m_maxMetaBaseAlign(0),
|
||||
m_pElemLib(NULL)
|
||||
{
|
||||
m_configFlags.value = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue