From 29a5fcd60b3738378b66499636a10f96a0f2a474 Mon Sep 17 00:00:00 2001 From: Peter Zhu Date: Thu, 5 Jan 2023 14:14:59 -0500 Subject: [PATCH] Add RBIMPL_ATTR_NORETURN to unknown_directive Fixes a compiler warning about the function unknown_directive: pack.c:160:1: warning: function 'unknown_directive' could be declared with attribute 'noreturn' [-Wmissing-noreturn] --- pack.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pack.c b/pack.c index f1f474759a..f9b1293c37 100644 --- a/pack.c +++ b/pack.c @@ -154,6 +154,7 @@ associated_pointer(VALUE associates, const char *t) UNREACHABLE_RETURN(Qnil); } +RBIMPL_ATTR_NORETURN() static void unknown_directive(const char *mode, char type, VALUE fmt) {