fix: warning 'noreturn' function does return on ppc
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 23 Mar 2023 18:23:55 +0000 (14:23 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 23 Mar 2023 19:44:57 +0000 (15:44 -0400)
commit106ed13754b1b836f4b59405f4e02aea4bf5eef0
treefbb17c815de6e48c67552ebc21a0e83ce0775557
parent6fa8b4f80f1d2efbc90fc6d2a5fb0dc1d7fd2a19
fix: warning 'noreturn' function does return on ppc

On a ppc64 system with gcc 9.5.0 I get the following error when building
with -O0 :

/usr/include/urcu/uatomic/generic.h: In function 'void _uatomic_link_error()':
/usr/include/urcu/uatomic/generic.h:53:1: warning: 'noreturn' function does return
   53 | }
      | ^

Split the inline function in 2 variants and apply the noreturn attribute
only on the builtin_trap one.

Change-Id: I5ae8e764c4cc27af0463924a653b9eaa9f698c34
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/urcu/uatomic/generic.h
This page took 0.026814 seconds and 4 git commands to generate.