mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use UNREACHABLE_RETURN for non-void function
This commit is contained in:
parent
3eb05a8071
commit
d4215dafea
1 changed files with 1 additions and 2 deletions
3
string.c
3
string.c
|
@ -6298,9 +6298,8 @@ unescape_ascii(unsigned int c)
|
||||||
return '\007';
|
return '\007';
|
||||||
case 'e':
|
case 'e':
|
||||||
return 033;
|
return 033;
|
||||||
default:
|
|
||||||
UNREACHABLE;
|
|
||||||
}
|
}
|
||||||
|
UNREACHABLE_RETURN(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue