Skip to content

Commit

Permalink
Fix compilation by replacing Noreturn with CAMLnoreturn
Browse files Browse the repository at this point in the history
The annotation should appear first in the prototype, before the type.
  • Loading branch information
MisterDA committed Jul 25, 2024
1 parent 0da9177 commit 0d9db31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/lwt_unix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 0d9db31

Please sign in to comment.