diff options
author | Kai Wasserbäch <[email protected]> | 2018-08-17 12:14:22 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2018-08-22 14:33:21 -0400 |
commit | 15ca5ce99a80d9ebb5ef2b1aca6ea00784931de4 (patch) | |
tree | 437044ebce7013b387cba7a7445bddb6e45eaef0 /src/amd/Makefile.addrlib.am | |
parent | 8b0e48887f01f92a19d46441c962c4833c168e29 (diff) |
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/amd/Makefile.addrlib.am')
-rw-r--r-- | src/amd/Makefile.addrlib.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/Makefile.addrlib.am b/src/amd/Makefile.addrlib.am index 75ff7fbcf75..af0daf907d5 100644 --- a/src/amd/Makefile.addrlib.am +++ b/src/amd/Makefile.addrlib.am @@ -24,6 +24,7 @@ ADDRLIB_LIBS = addrlib/libamdgpu_addrlib.la addrlib_libamdgpu_addrlib_la_CPPFLAGS = \ $(DEFINES) \ -I$(top_srcdir)/src/ \ + -I$(top_srcdir)/include \ -I$(srcdir)/common \ -I$(srcdir)/addrlib \ -I$(srcdir)/addrlib/core \ |