ruby-changes:60791
From: Nobuyoshi <ko1@a...>
Date: Thu, 16 Apr 2020 18:09:28 +0900 (JST)
Subject: [ruby-changes:60791] d4215dafea (master): Use UNREACHABLE_RETURN for non-void function
https://git.ruby-lang.org/ruby.git/commit/?id=d4215dafea From d4215dafeadc64df236e136d35f6a26835c34aa5 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Thu, 16 Apr 2020 17:59:55 +0900 Subject: Use UNREACHABLE_RETURN for non-void function diff --git a/string.c b/string.c index c64b273..b17d411 100644 --- a/string.c +++ b/string.c @@ -6298,9 +6298,8 @@ unescape_ascii(unsigned int c) https://github.com/ruby/ruby/blob/trunk/string.c#L6298 return '\007'; case 'e': return 033; - default: - UNREACHABLE; } + UNREACHABLE_RETURN(-1); } static void -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/