amd/addrlib: mark physicalSliceSize as MAYBE_UNUSED in Addr::V1::EgBasedLib::HwlGetSi...
authorKai Wasserbäch <kai@dev.carbon-project.org>
Sat, 18 Aug 2018 10:01:14 +0000 (12:01 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Aug 2018 18:33:21 +0000 (14:33 -0400)
commitc836a751bcc8721a7c122e0143ade0a6f3d8c9d5
tree340eaf686e1625edef888449f00fea55e729482d
parent2e0586e379a3989c43957972ee08210f01162685
amd/addrlib: mark physicalSliceSize as MAYBE_UNUSED in Addr::V1::EgBasedLib::HwlGetSizeAdjustmentMicroTiled

Only used, when asserts are enabled.

Fixes an unused-but-set-variable warning with GCC 8:
 ../../../src/amd/addrlib/r800/egbaddrlib.cpp: In member function 'virtual long long unsigned int Addr::V1::EgBasedLib::HwlGetSizeAdjustmentMicroTiled(unsigned int, unsigned int, ADDR_SURFACE_FLAGS, unsigned int, unsigned int, unsigned int, unsigned int*, unsigned int*) const':
 ../../../src/amd/addrlib/r800/egbaddrlib.cpp:4111:13: warning: variable 'physicalSliceSize' set but not used [-Wunused-but-set-variable]
      UINT_64 physicalSliceSize;
              ^~~~~~~~~~~~~~~~~

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