diff options
author | Peter Zhu <peter@peterzhu.ca> | 2023-01-05 14:14:59 -0500 |
---|---|---|
committer | Peter Zhu <peter@peterzhu.ca> | 2023-01-05 14:55:14 -0500 |
commit | 29a5fcd60b3738378b66499636a10f96a0f2a474 (patch) | |
tree | 2a7b24b80b415a4f13b8a8b5b318061f78216576 | |
parent | ec14861f0d7a1e99d3e6667dee2f4c9cc426d5f3 (diff) | |
download | ruby-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |