amd/addrlib: mark returnCode as MAYBE_UNUSED in ElemGetExportNorm
authorKai Wasserbäch <kai@dev.carbon-project.org>
Fri, 17 Aug 2018 10:14:22 +0000 (12:14 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Aug 2018 18:33:21 +0000 (14:33 -0400)
commit15ca5ce99a80d9ebb5ef2b1aca6ea00784931de4
tree437044ebce7013b387cba7a7445bddb6e45eaef0
parent8b0e48887f01f92a19d46441c962c4833c168e29
amd/addrlib: mark returnCode as MAYBE_UNUSED in ElemGetExportNorm

Only used, when asserts are enabled.

Fixes an unused-but-set-variable warning with GCC 8:
 ../../../src/amd/addrlib/addrinterface.cpp: In function 'int ElemGetExportNorm(ADDR_HANDLE, const ELEM_GETEXPORTNORM_INPUT*)':
 ../../../src/amd/addrlib/addrinterface.cpp:835:23: warning: variable 'returnCode' set but not used [-Wunused-but-set-variable]
      ADDR_E_RETURNCODE returnCode = ADDR_OK;
                        ^~~~~~~~~~

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