summaryrefslogtreecommitdiffstats
path: root/src/amd/addrlib
diff options
context:
space:
mode:
authorKai Wasserbäch <[email protected]>2018-08-21 17:25:46 +0200
committerMarek Olšák <[email protected]>2018-08-22 14:33:21 -0400
commit2e0586e379a3989c43957972ee08210f01162685 (patch)
treed41015e4bfb97e89d92e4bf3ada937490fd32ba4 /src/amd/addrlib
parent6a7ef7c7dc8587d2d0b7a89e4426602e92125d7a (diff)
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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/addrlib')
-rw-r--r--src/amd/addrlib/r800/egbaddrlib.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/amd/addrlib/r800/egbaddrlib.cpp b/src/amd/addrlib/r800/egbaddrlib.cpp
index 3947cfda2fd..905d443cfa9 100644
--- a/src/amd/addrlib/r800/egbaddrlib.cpp
+++ b/src/amd/addrlib/r800/egbaddrlib.cpp
@@ -33,6 +33,8 @@
#include "egbaddrlib.h"
+#include "util/macros.h"
+
namespace Addr
{
namespace V1
@@ -979,7 +981,7 @@ BOOL_32 EgBasedLib::SanityCheckMacroTiled(
) const
{
BOOL_32 valid = TRUE;
- UINT_32 numPipes = HwlGetPipes(pTileInfo);
+ MAYBE_UNUSED UINT_32 numPipes = HwlGetPipes(pTileInfo);
switch (pTileInfo->banks)
{