From 8e16b26347c14be362fca87c168f0c90f0d19be0 Mon Sep 17 00:00:00 2001 From: Jonathan Kim Date: Fri, 21 Jul 2023 17:22:27 -0400 Subject: [PATCH] Silence implicity conversion warnings in exception handling Silence unnamed enum warning in error code comparison Change-Id: I008b269c106bbad83a1f7588e7b4ec89ec17d37d [ROCm/ROCR-Runtime commit: 0d14144e3a7575b90b55a2cb3b1aa2abf9ac6d20] --- .../runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp index b09ea82a79..e46116244c 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/amd_aql_queue.cpp @@ -1062,7 +1062,7 @@ bool AqlQueue::ExceptionHandler(hsa_signal_value_t error_code, void* arg) { // Suppress VM fault reporting. This is more useful when reported through the system error // handler. - if (errorCode == HSA_STATUS_ERROR_MEMORY_FAULT) { + if (errorCode == static_cast(HSA_STATUS_ERROR_MEMORY_FAULT)) { debug_print("Queue error - HSA_STATUS_ERROR_MEMORY_FAULT\n"); return false; }