Fix unused function warnings for conditionally used functions

Change-Id: Ied23c571b949abef1816914986f19b14aca3d2f3
This commit is contained in:
Matt Arsenault
2020-06-30 18:10:03 -04:00
committato da Matthew Arsenault
parent 7124974148
commit c56a82fd05
4 ha cambiato i file con 30 aggiunte e 16 eliminazioni
+2
Vedi 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;