From 0d9db31ce2ac9ed258e8f17821d33f7b65a32b25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Thu, 25 Jul 2024 15:12:16 +0200 Subject: [PATCH] Fix compilation by replacing Noreturn with CAMLnoreturn The annotation should appear first in the prototype, before the type. --- src/unix/lwt_unix.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/lwt_unix.h b/src/unix/lwt_unix.h index 47f093016..f5a5573fe 100644 --- a/src/unix/lwt_unix.h +++ b/src/unix/lwt_unix.h @@ -48,7 +48,7 @@ char *lwt_unix_strdup(char *string); (type *)lwt_unix_malloc(sizeof(type) + size) /* Raise [Lwt_unix.Not_available]. */ -void lwt_unix_not_available(char const *feature) Noreturn; +CAMLnoret void lwt_unix_not_available(char const *feature); #define LWT_NOT_AVAILABLE_BYTE(prim) \ CAMLprim value lwt_##prim(value *a1, int a2) \