From 7e60fda72a3501c52b69bb042c0947817cbe1acc Mon Sep 17 00:00:00 2001 From: Olivier Dion Date: Mon, 14 Aug 2023 18:57:23 -0400 Subject: [PATCH] uatomic/generic: Fix redundant declaration warning abort(3) was explicitly declared external to avoid including . However, this emit a redundant declaration warning if it was already declared before including . Fix this by including and not declaring abort(). Change-Id: If9557814c311e2b531e85fec8c41788462338fe4 Signed-off-by: Olivier Dion Signed-off-by: Mathieu Desnoyers --- include/urcu/uatomic/generic.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/urcu/uatomic/generic.h b/include/urcu/uatomic/generic.h index afc5185..8f8c437 100644 --- a/include/urcu/uatomic/generic.h +++ b/include/urcu/uatomic/generic.h @@ -15,6 +15,7 @@ */ #include +#include #include #include @@ -26,8 +27,6 @@ extern "C" { #define uatomic_set(addr, v) ((void) CMM_STORE_SHARED(*(addr), (v))) #endif -extern void abort(void); - #define uatomic_load_store_return_op(op, addr, v, mo) \ __extension__ \ ({ \ -- 2.39.5