From 9a1e96321eb79f183602a32f92a8b23ca27a7740 Mon Sep 17 00:00:00 2001 From: eshcherb <33529668+eshcherb@users.noreply.github.com> Date: Sat, 29 Jun 2019 22:38:43 -0500 Subject: [PATCH] hip_api_name fixed to be inline to suppress not used warning (#1194) [ROCm/hip commit: e72893a771b343e1542d7d3a17563c05bb0c0c8d] --- projects/hip/hip_prof_gen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip/hip_prof_gen.py b/projects/hip/hip_prof_gen.py index 923b2be01e..587b2d545a 100755 --- a/projects/hip/hip_prof_gen.py +++ b/projects/hip/hip_prof_gen.py @@ -333,7 +333,7 @@ def generate_prof_header(f, api_map, opts_map): # Generating the callbacks ID enumaration f.write('\n// Return HIP API string\n') - f.write('static const char* hip_api_name(const uint32_t& id) {\n') + f.write('static inline const char* hip_api_name(const uint32_t& id) {\n') f.write(' switch(id) {\n') for name in api_map.keys(): f.write(' case HIP_API_ID_' + name + ': return "' + name + '";\n')