diff options
author | Kai Wasserbäch <[email protected]> | 2018-08-18 12:01:14 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-08-22 14:33:21 -0400 |
commit | c836a751bcc8721a7c122e0143ade0a6f3d8c9d5 (patch) | |
tree | 340eaf686e1625edef888449f00fea55e729482d /src/amd/addrlib | |
parent | 2e0586e379a3989c43957972ee08210f01162685 (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/addrlib')
-rw-r--r-- | src/amd/addrlib/r800/egbaddrlib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/addrlib/r800/egbaddrlib.cpp b/src/amd/addrlib/r800/egbaddrlib.cpp index 905d443cfa9..ed116180868 100644 --- a/src/amd/addrlib/r800/egbaddrlib.cpp +++ b/src/amd/addrlib/r800/egbaddrlib.cpp @@ -4110,7 +4110,7 @@ UINT_64 EgBasedLib::HwlGetSizeAdjustmentMicroTiled( ) const { UINT_64 logicalSliceSize; - UINT_64 physicalSliceSize; + MAYBE_UNUSED UINT_64 physicalSliceSize; UINT_32 pitch = *pPitch; UINT_32 height = *pHeight; |