From f3417a617fd9d79a4545b640e2ca78f657f790bc Mon Sep 17 00:00:00 2001 From: Ranjith Ramakrishnan Date: Tue, 15 Nov 2022 18:22:21 -0800 Subject: [PATCH] SWDEV-366823 - Change pragma message to warning File reorganization feature was implemented with backward compatibility The backward compatibility support will be deprecated in future release. Changed the #pragma message to #warning for a smooth transition Change-Id: I85e14470cce0f3d7c14ecb40e0e9e8b29c977c9f [ROCm/roctracer commit: ca1726f80da34e6ccdfbc15f5c415bc574607a43] --- projects/roctracer/header_template.hpp.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/projects/roctracer/header_template.hpp.in b/projects/roctracer/header_template.hpp.in index 391788987b..2cd01969c6 100644 --- a/projects/roctracer/header_template.hpp.in +++ b/projects/roctracer/header_template.hpp.in @@ -23,7 +23,12 @@ #ifndef @include_guard@ #define @include_guard@ +#if defined(__GNUC__) +#warning "This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with roctracer" +#else #pragma message("This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with roctracer") +#endif + @include_statements@ #endif