summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2023-01-05 14:14:59 -0500
committerPeter Zhu <[email protected]>2023-01-05 14:55:14 -0500
commit29a5fcd60b3738378b66499636a10f96a0f2a474 ()
tree2a7b24b80b415a4f13b8a8b5b318061f78216576
parentec14861f0d7a1e99d3e6667dee2f4c9cc426d5f3 (diff)
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]
Notes: Merged: https://.com/ruby/ruby/pull/7070
-rw-r--r--pack.c1
1 files changed, 1 insertions, 0 deletions
@@ -154,6 +154,7 @@ associated_pointer(VALUE associates, const char *t)
UNREACHABLE_RETURN(Qnil);
}
static void
unknown_directive(const char *mode, char type, VALUE fmt)
{