do not use _Noreturn for a function pointer in dynamic linker
authorMatthew Maurer <mmaurer@google.com>
Thu, 13 Jun 2019 19:33:38 +0000 (12:33 -0700)
committerRich Felker <dalias@aerifal.cx>
Fri, 21 Jun 2019 20:26:40 +0000 (16:26 -0400)
_Noreturn is a C11 construct, and may only be used at the site of a
function definition.

src/internal/dynlink.h

index cbe0a6f..165bbed 100644 (file)
@@ -95,7 +95,7 @@ struct fdpic_dummy_loadmap {
 #define DYN_CNT 32
 
 typedef void (*stage2_func)(unsigned char *, size_t *);
-typedef _Noreturn void (*stage3_func)(size_t *);
+typedef void (*stage3_func)(size_t *);
 
 hidden void *__dlsym(void *restrict, const char *restrict, void *restrict);