From cc7ed02b543f384f37c8fb28b33ed48c038ac648 Mon Sep 17 00:00:00 2001 From: Sebastien RAILLET Date: Tue, 12 Oct 2021 15:05:00 +0200 Subject: fixes compilation issue with clang * function atomic_compare_exchange_strong expect a pointer to an _Atomic type. dlt_user_initialised is now an atomic_bool * function dlt_set_filesize_max returned a DLT_LOG_ERROR which isn't a DltReturnValue. This commit replaces DLT_LOG_ERROR by DLT_RETURN_ERROR which is the expected return type Signed-off-by: Sebastien RAILLET --- src/lib/dlt_user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/dlt_user.c b/src/lib/dlt_user.c index cc6a21d..fff621e 100644 --- a/src/lib/dlt_user.c +++ b/src/lib/dlt_user.c @@ -91,7 +91,7 @@ #endif /* DLT_FATAL_LOG_RESET_ENABLE */ static DltUser dlt_user; -static bool dlt_user_initialised = false; +static atomic_bool dlt_user_initialised = false; static int dlt_user_freeing = 0; static bool dlt_user_file_reach_max = false; @@ -594,7 +594,7 @@ DltReturnValue dlt_set_filesize_max(unsigned int filesize) { dlt_vlog(LOG_ERR, "%s: Library is not configured to log to file\n", __func__); - return DLT_LOG_ERROR; + return DLT_RETURN_ERROR; } if (filesize == 0) { -- cgit v1.2.1