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]
This commit is contained in:
Peter Zhu 2023-01-05 14:14:59 -05:00
parent ec14861f0d
commit 29a5fcd60b
Notes: git 2023-01-05 19:55:33 +00:00

1
pack.c
View File

@ -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)
{