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:
parent
ec14861f0d
commit
29a5fcd60b
Notes:
git
2023-01-05 19:55:33 +00:00
1
pack.c
1
pack.c
@ -154,6 +154,7 @@ associated_pointer(VALUE associates, const char *t)
|
|||||||
UNREACHABLE_RETURN(Qnil);
|
UNREACHABLE_RETURN(Qnil);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RBIMPL_ATTR_NORETURN()
|
||||||
static void
|
static void
|
||||||
unknown_directive(const char *mode, char type, VALUE fmt)
|
unknown_directive(const char *mode, char type, VALUE fmt)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user