amd/addrlib: mark *pEqToCheck as MAYBE_UNUSED in Addr::V2::Gfx9Lib::ComputeStereoInfo...
authorKai Wasserbäch <kai@dev.carbon-project.org>
Tue, 21 Aug 2018 15:25:45 +0000 (17:25 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Aug 2018 18:33:21 +0000 (14:33 -0400)
commit6a7ef7c7dc8587d2d0b7a89e4426602e92125d7a
treeb41ad48658428694862be9a3fa4957364ab1aaed
parent556f89a7158bfaa5a2332ac84c7be9b113a80f13
amd/addrlib: mark *pEqToCheck as MAYBE_UNUSED in Addr::V2::Gfx9Lib::ComputeStereoInfo (v2)

Only used, when asserts are enabled.

Fixes an unused-variable warning with GCC 8:
 ../../../src/amd/addrlib/gfx9/gfx9addrlib.cpp: In member function 'ADDR_E_RETURNCODE Addr::V2::Gfx9Lib::ComputeStereoInfo(const ADDR2_COMPUTE_SURFACE_INFO_INPUT*, ADDR2_COMPUTE_SURFACE_INFO_OUTPUT*, unsigned int*) const':
 ../../../src/amd/addrlib/gfx9/gfx9addrlib.cpp:3879:34: warning: unused variable 'pEqToCheck' [-Wunused-variable]
              const ADDR_EQUATION *pEqToCheck        = &m_equationTable[eqIndex];
                                   ^~~~~~~~~~

v2: Don't realign other variable definitions, to keep in line with file
    style (Marek)

Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/addrlib/gfx9/gfx9addrlib.cpp