From 5d390717b52c45cb554414d7edbc43fa46b946cb Mon Sep 17 00:00:00 2001 From: gobhardw Date: Wed, 18 Oct 2023 21:42:47 +0530 Subject: [PATCH] SWDEV-427554 Fixing mainline ASAN build Change-Id: I63cd047ceb75dea5f8ed6f84946e1ec209c7d812 --- src/core/activity.cpp | 2 +- test/app/intercept_test.cpp | 2 +- test/app/stand_intercept_test.cpp | 2 +- test/tool/tool.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/activity.cpp b/src/core/activity.cpp index 3bd753e761..61de615b3b 100644 --- a/src/core/activity.cpp +++ b/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/test/app/intercept_test.cpp b/test/app/intercept_test.cpp index cc383e91d6..bdf2aef608 100644 --- a/test/app/intercept_test.cpp +++ b/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/test/app/stand_intercept_test.cpp b/test/app/stand_intercept_test.cpp index ad8c62594e..e7d83bc388 100644 --- a/test/app/stand_intercept_test.cpp +++ b/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/test/tool/tool.cpp b/test/tool/tool.cpp index a0232f4a45..99124af96a 100644 --- a/test/tool/tool.cpp +++ b/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);