From: Michael Jeanson Date: Wed, 31 Mar 2021 19:15:12 +0000 (-0400) Subject: cleanup: add 'noreturn' attribute to '_uatomic_link_error' X-Git-Tag: v0.13.0~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=85be4e352b8bf274704acd4d57165552cba070c7;p=urcu.git cleanup: add 'noreturn' attribute to '_uatomic_link_error' Tell the compiler that this function never returns, may help with optimizations. Change-Id: I07e4bdc5c83436e497db02394eccfbf44063f090 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/include/urcu/uatomic/generic.h b/include/urcu/uatomic/generic.h index 5bb0d4f..89d1cfa 100644 --- a/include/urcu/uatomic/generic.h +++ b/include/urcu/uatomic/generic.h @@ -38,7 +38,7 @@ extern "C" { #endif #if !defined __OPTIMIZE__ || defined UATOMIC_NO_LINK_ERROR -static inline __attribute__((always_inline)) +static inline __attribute__((always_inline, noreturn)) void _uatomic_link_error(void) { #ifdef ILLEGAL_INSTR