diff --git a/projects/rocprofiler/src/core/activity.cpp b/projects/rocprofiler/src/core/activity.cpp index 3bd753e761..61de615b3b 100644 --- a/projects/rocprofiler/src/core/activity.cpp +++ b/projects/rocprofiler/src/core/activity.cpp @@ -40,7 +40,7 @@ THE SOFTWARE. #define PUBLIC_API __attribute__((visibility("default"))) // Error handler -void fatal(const std::string msg) [[noreturn]] { +void fatal(const std::string msg) { fflush(stdout); fprintf(stderr, "%s\n\n", msg.c_str()); fflush(stderr); diff --git a/projects/rocprofiler/test/app/intercept_test.cpp b/projects/rocprofiler/test/app/intercept_test.cpp index cc383e91d6..bdf2aef608 100644 --- a/projects/rocprofiler/test/app/intercept_test.cpp +++ b/projects/rocprofiler/test/app/intercept_test.cpp @@ -46,7 +46,7 @@ volatile bool is_loaded = false; // unsigned feature_count = 0; // Error handler -void fatal(const std::string msg) [[noreturn]] { +void fatal(const std::string msg) { fflush(stdout); fprintf(stderr, "%s\n\n", msg.c_str()); fflush(stderr); diff --git a/projects/rocprofiler/test/app/stand_intercept_test.cpp b/projects/rocprofiler/test/app/stand_intercept_test.cpp index ad8c62594e..e7d83bc388 100644 --- a/projects/rocprofiler/test/app/stand_intercept_test.cpp +++ b/projects/rocprofiler/test/app/stand_intercept_test.cpp @@ -39,7 +39,7 @@ THE SOFTWARE. pthread_mutex_t mutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; // Error handler -void fatal(const std::string msg) [[noreturn]] { +void fatal(const std::string msg) { fflush(stdout); fprintf(stderr, "%s\n\n", msg.c_str()); fflush(stderr); diff --git a/projects/rocprofiler/test/tool/tool.cpp b/projects/rocprofiler/test/tool/tool.cpp index a0232f4a45..99124af96a 100644 --- a/projects/rocprofiler/test/tool/tool.cpp +++ b/projects/rocprofiler/test/tool/tool.cpp @@ -159,7 +159,7 @@ static inline uint32_t GetTid() { return syscall(__NR_gettid); } uint32_t my_pid = GetPid(); // Error handler -void fatal(const std::string msg) [[noreturn]] { +void fatal(const std::string msg) { fflush(stdout); fprintf(stderr, "%s\n\n", msg.c_str()); fflush(stderr);