aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-01-05 14:14:59 -0500
committerPeter Zhu <peter@peterzhu.ca>2023-01-05 14:55:14 -0500
commit29a5fcd60b3738378b66499636a10f96a0f2a474 (patch)
tree2a7b24b80b415a4f13b8a8b5b318061f78216576
parentec14861f0d7a1e99d3e6667dee2f4c9cc426d5f3 (diff)
downloadruby-29a5fcd60b3738378b66499636a10f96a0f2a474.tar.gz
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]
-rw-r--r--pack.c1
1 files changed, 1 insertions, 0 deletions
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)
{