Welcome to little lamb

Code » limb » commit 473be70

output.h: Mark obuffer_putmsgdie() as noreturn

author Olivier Brunel
2023-05-09 10:54:32 UTC
committer Olivier Brunel
2023-07-05 07:37:02 UTC
parent 4ba9b593b446d4bb4114520acc5fced22e572c94

output.h: Mark obuffer_putmsgdie() as noreturn

Might silence some warnings.

src/liblimb/include/limb/output.h +2 -1

diff --git a/src/liblimb/include/limb/output.h b/src/liblimb/include/limb/output.h
index 76ba60d..9790754 100644
--- a/src/liblimb/include/limb/output.h
+++ b/src/liblimb/include/limb/output.h
@@ -5,9 +5,10 @@
 #define LIMB_OUTPUT_H
 
 #include <stddef.h> /* size_t */
+#include <skalibs/gccattributes.h>
 #include <limb/obuffer.h>
 
-extern void obuffer_putmsgdie(obuffer *obuf, u8 level, const char * const str[], unsigned n, int exit);
+extern void obuffer_putmsgdie(obuffer *obuf, u8 level, const char * const str[], unsigned n, int exit) gccattr_noreturn;
 
 extern void list_matches_full(obuffer *obuf, u8 level, const char *intro,
                               const char *prefix, const char *sep, const char *outro,