Skip to content

Commit

Permalink
SWDEV-366823 - Change pragma message to warning
Browse files Browse the repository at this point in the history
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: I281ad17949435fee4b508a2a7e112b6fa3365838
  • Loading branch information
raramakr committed Nov 21, 2022
1 parent e9e3ba5 commit e7ed902
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion rocm_smi-backward-compat.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,20 @@ function(create_header_template)
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/\n\n#ifndef @include_guard@\n#define @include_guard@ \n\n#pragma message(\"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with @prefix_name@\")\n@include_statements@ \n\n#endif")
*/
#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 @prefix_name@\"
#else
#pragma message(\"This file is deprecated. Use file from include path /opt/rocm-ver/include/ and prefix with @prefix_name@\")
#endif
@include_statements@
#endif")
endfunction()

#use header template file and generate wrapper header files
Expand Down

0 comments on commit e7ed902

Please sign in to comment.