amd/addrlib: mark numPipes as MAYBE_UNUSED in Addr::V1::EgBasedLib::SanityCheckMacroT...
authorKai Wasserbäch <kai@dev.carbon-project.org>
Tue, 21 Aug 2018 15:25:46 +0000 (17:25 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Aug 2018 18:33:21 +0000 (14:33 -0400)
commit2e0586e379a3989c43957972ee08210f01162685
treed41015e4bfb97e89d92e4bf3ada937490fd32ba4
parent6a7ef7c7dc8587d2d0b7a89e4426602e92125d7a
amd/addrlib: mark numPipes as MAYBE_UNUSED in Addr::V1::EgBasedLib::SanityCheckMacroTiled (v2)

Only used, when asserts are enabled.

Fixes an unused-variable warning with GCC 8:
 ../../../src/amd/addrlib/r800/egbaddrlib.cpp: In member function 'int Addr::V1::EgBasedLib::SanityCheckMacroTiled(ADDR_TILEINFO*) const':
 ../../../src/amd/addrlib/r800/egbaddrlib.cpp:982:13: warning: unused variable 'numPipes' [-Wunused-variable]
      UINT_32 numPipes    = HwlGetPipes(pTileInfo);
              ^~~~~~~~

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/r800/egbaddrlib.cpp