diff --git a/hipamd/header_template.hpp.in b/hipamd/header_template.hpp.in index 2a23abb164..5ec051d50d 100644 --- a/hipamd/header_template.hpp.in +++ b/hipamd/header_template.hpp.in @@ -23,7 +23,7 @@ #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" +#error "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