From: Olivier Dion Date: Mon, 14 Aug 2023 22:57:23 +0000 (-0400) Subject: uatomic/generic: Fix redundant declaration warning X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7e60fda72a3501c52b69bb042c0947817cbe1acc;p=urcu.git 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 --- 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__ \ ({ \