cleanup: add 'noreturn' attribute to '_uatomic_link_error'
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 31 Mar 2021 19:15:12 +0000 (15:15 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 1 Apr 2021 14:50:45 +0000 (10:50 -0400)
Tell the compiler that this function never returns, may help with
optimizations.

Change-Id: I07e4bdc5c83436e497db02394eccfbf44063f090
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/uatomic/generic.h

index 5bb0d4f983c3b96c920827b991b6798fadc5cbbd..89d1cfa98c1ab198cc8f628a0e28fdaadfbd5f90 100644 (file)
@@ -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
This page took 0.025496 seconds and 4 git commands to generate.