From 447d1d1d574425df7ea39d0f869660223e5d6aca Mon Sep 17 00:00:00 2001 From: Ranjith Ramakrishnan Date: Tue, 15 Nov 2022 22:44:59 -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: I0857f40602204511eb122367f81c5a81bde537a2 --- hipamd/header_template.hpp.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hipamd/header_template.hpp.in b/hipamd/header_template.hpp.in index 51908a4ca6..2a23abb164 100644 --- a/hipamd/header_template.hpp.in +++ b/hipamd/header_template.hpp.in @@ -22,7 +22,12 @@ #ifndef @include_guard@ #define @include_guard@ +#if defined(__GNUC__) +#warning "This file is deprecated. Use header files from HIP_PATH/include, where HIP_PATH corresponds to HIP install path" +#else #pragma message("This file is deprecated. Use header files from HIP_PATH/include, where HIP_PATH corresponds to HIP install path") +#endif + @include_statements@ @hashzero_check@