From 27ce54a0aa5b447eb89ae7288c3a55e596b9a008 Mon Sep 17 00:00:00 2001 From: James Edwards Date: Tue, 6 Feb 2018 12:06:08 -0600 Subject: [PATCH] : Fix compilation errors with gcc 7.2.1 for hsa runtime. Change-Id: I3356388753ca78cc0f1e0c3188220d7f3f60283d [ROCm/ROCR-Runtime commit: b913795c311f5f58aa7b3cffe7d25641cc9cc868] --- projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp index 0c55e38105..71e1b86dd8 100644 --- a/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp +++ b/projects/rocr-runtime/runtime/hsa-runtime/core/runtime/hsa.cpp @@ -376,7 +376,7 @@ static size_t get_extension_table_length(uint16_t extension, uint16_t major, uin return 0; } - char buff[3]; + char buff[6]; sprintf(buff, "%02u", minor); name += std::to_string(major) + "_" + buff + "_pfn_t";