From ba3f1cb476f974a981a9ddee116e0b84bf81d406 Mon Sep 17 00:00:00 2001 From: hthangir Date: Fri, 17 Mar 2017 00:29:59 -0500 Subject: [PATCH] We should be using the "used" gcc attribute. Change-Id: I1589273740ae66e8d7d8186a88e2c411a2e0425c See: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#Common-Variable-Attributes --- runtime/hsa-runtime/core/runtime/runtime.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/core/runtime/runtime.cpp b/runtime/hsa-runtime/core/runtime/runtime.cpp index d205400752..f0def7f6a6 100755 --- a/runtime/hsa-runtime/core/runtime/runtime.cpp +++ b/runtime/hsa-runtime/core/runtime/runtime.cpp @@ -65,7 +65,7 @@ #define HSA_VERSION_MAJOR 1 #define HSA_VERSION_MINOR 1 -const char rocrbuildid[] __attribute__((unused)) = "ROCR BUILD ID: " STRING(ROCR_BUILD_ID); +const char rocrbuildid[] __attribute__((used)) = "ROCR BUILD ID: " STRING(ROCR_BUILD_ID); namespace core { bool g_use_interrupt_wait = true;