Fix unused function warnings for conditionally used functions

Change-Id: Ied23c571b949abef1816914986f19b14aca3d2f3
This commit is contained in:
Matt Arsenault authored and Matthew Arsenault committed 2020-07-06 10:28:43 -04:00
1 parent 7124974148
commit c56a82fd05
4 files changed
+30 -16

No files matched your search

+2
View File
@@ -41,6 +41,7 @@
namespace roc {
#if defined(WITH_COMPILER_LIB)
static hsa_status_t GetKernelNamesCallback(hsa_executable_t exec, hsa_agent_t agent,
hsa_executable_symbol_t symbol, void* data) {
std::vector<std::string>* symNameList = reinterpret_cast<std::vector<std::string>*>(data);
@@ -62,6 +63,7 @@ static hsa_status_t GetKernelNamesCallback(hsa_executable_t exec, hsa_agent_t ag
return HSA_STATUS_SUCCESS;
}
#endif
static inline const char* hsa_strerror(hsa_status_t status) {
const char* str = nullptr;