Bug #6066 » return.not_reached.convert.patch
| variable.c (working copy) | ||
|---|---|---|
|
(*trace->func)(trace->data, data->val);
|
||
|
trace = trace->next;
|
||
|
}
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
static VALUE
|
||
| ... | ... | |
|
break;
|
||
|
}
|
||
|
rb_name_error(id, "instance variable %s not defined", rb_id2name(id));
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
NORETURN(static void uninitialized_constant(VALUE, ID));
|
||
| ... | ... | |
|
{
|
||
|
rb_frame_pop(); /* pop frame for "const_missing" */
|
||
|
uninitialized_constant(klass, rb_to_id(name));
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
static void
|
||
| ... | ... | |
|
}
|
||
|
rb_name_error(id, "class variable %s not defined for %s",
|
||
|
rb_id2name(id), rb_class2name(mod));
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
VALUE
|
||
| enum.c (working copy) | ||
|---|---|---|
|
memo->u1.value = i;
|
||
|
rb_iter_break();
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
static VALUE
|
||
| string.c (working copy) | ||
|---|---|---|
|
idx = NUM2LONG(indx);
|
||
|
goto num_index;
|
||
|
}
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
| ... | ... | |
|
idx = NUM2LONG(indx);
|
||
|
goto num_index;
|
||
|
}
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
/*
|
||
| ... | ... | |
|
case T_SYMBOL:
|
||
|
return SYM2ID(name);
|
||
|
}
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
/*
|
||
| io.c (working copy) | ||
|---|---|---|
|
return MODE_BTMODE("r+", "rb+", "rt+");
|
||
|
}
|
||
|
rb_raise(rb_eArgError, "invalid access fmode 0x%x", fmode);
|
||
|
return NULL; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
static int
|
||
| ... | ... | |
|
return MODE_BINARY("r+", "rb+");
|
||
|
}
|
||
|
rb_raise(rb_eArgError, "invalid access oflags 0x%x", oflags);
|
||
|
return NULL; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
/*
|
||
| pack.c (working copy) | ||
|---|---|---|
|
return rb_big2ulong_pack(x);
|
||
|
}
|
||
|
rb_raise(rb_eTypeError, "can't convert %s to `integer'", rb_obj_classname(x));
|
||
|
return 0; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
#define MAX_INTEGER_PACK_SIZE 8
|
||
| vm_eval.c (working copy) | ||
|---|---|---|
|
{
|
||
|
rb_thread_t *th = GET_THREAD();
|
||
|
raise_method_missing(th, argc, argv, obj, th->method_missing_reason);
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
#define NOEX_MISSING 0x80
|
||
| ... | ... | |
|
rb_scan_args(argc, argv, "11", &tag, &value);
|
||
|
rb_throw_obj(tag, value);
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
void
|
||
| dir.c (working copy) | ||
|---|---|---|
|
else {
|
||
|
rb_sys_fail(0);
|
||
|
}
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
/*
|
||
| win32/win32.c (working copy) | ||
|---|---|---|
|
GetExitCodeProcess(child->hProcess, &exitcode);
|
||
|
CloseChildHandle(child);
|
||
|
_exit(exitcode);
|
||
|
default:
|
||
|
return -1; /* not reached */
|
||
|
default
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
}
|
||
| struct.c (working copy) | ||
|---|---|---|
|
}
|
||
|
}
|
||
|
rb_name_error(id, "%s is not struct member", rb_id2name(id));
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
static VALUE
|
||
| ... | ... | |
|
}
|
||
|
rb_name_error(rb_frame_this_func(), "`%s' is not a struct member",
|
||
|
rb_id2name(rb_frame_this_func()));
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
static VALUE
|
||
| ... | ... | |
|
}
|
||
|
}
|
||
|
rb_name_error(id, "no member '%s' in struct", rb_id2name(id));
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
/*
|
||
| eval.c (working copy) | ||
|---|---|---|
|
}
|
||
|
}
|
||
|
rb_raise_jump(rb_make_exception(argc, argv));
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
static VALUE
|
||
| process.c (working copy) | ||
|---|---|---|
|
}
|
||
|
_exit(istatus);
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
void
|
||
| ... | ... | |
|
istatus = EXIT_SUCCESS;
|
||
|
}
|
||
|
rb_exit(istatus);
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
| ... | ... | |
|
args[0] = INT2NUM(EXIT_FAILURE);
|
||
|
rb_exc_raise(rb_class_new_instance(2, args, rb_eSystemExit));
|
||
|
}
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
void
|
||
| ext/-test-/iter/break.c (working copy) | ||
|---|---|---|
|
iter_break_value(VALUE self, VALUE val)
|
||
|
{
|
||
|
rb_iter_break_value(val);
|
||
|
return self; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
void
|
||
| ext/pty/pty.c (working copy) | ||
|---|---|---|
|
if (!RTEST(exc)) return rb_last_status_get();
|
||
|
raise_from_check(cpid, status);
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
static VALUE cPTY;
|
||
| ext/openssl/ossl_pkey.c (working copy) | ||
|---|---|---|
|
default:
|
||
|
ossl_raise(ePKeyError, "unsupported key type");
|
||
|
}
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
VALUE
|
||
| ext/readline/readline.c (working copy) | ||
|---|---|---|
|
return Qnil;
|
||
|
#else
|
||
|
rb_notimplement();
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
#endif
|
||
|
}
|
||
| ext/stringio/stringio.c (working copy) | ||
|---|---|---|
|
{
|
||
|
StringIO(self);
|
||
|
rb_notimplement();
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
/*
|
||
| numeric.c (working copy) | ||
|---|---|---|
|
"can't define singleton method \"%s\" for %s",
|
||
|
rb_id2name(mid),
|
||
|
rb_obj_classname(x));
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
/* :nodoc: */
|
||
| ... | ... | |
|
{
|
||
|
/* Numerics are immutable values, which should not be copied */
|
||
|
rb_raise(rb_eTypeError, "can't copy %s", rb_obj_classname(x));
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
/*
|
||
| ... | ... | |
|
case T_STRING:
|
||
|
rb_raise(rb_eTypeError, "no implicit conversion from string");
|
||
|
return Qnil; /* not reached */
|
||
|
break;
|
||
|
case T_TRUE:
|
||
|
case T_FALSE:
|
||
|
rb_raise(rb_eTypeError, "no implicit conversion from boolean");
|
||
|
return Qnil; /* not reached */
|
||
|
break;
|
||
|
default:
|
||
|
val = rb_to_int(val);
|
||
|
return NUM2LL(val);
|
||
|
}
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
unsigned LONG_LONG
|
||
| ... | ... | |
|
case T_STRING:
|
||
|
rb_raise(rb_eTypeError, "no implicit conversion from string");
|
||
|
return Qnil; /* not reached */
|
||
|
break;
|
||
|
case T_TRUE:
|
||
|
case T_FALSE:
|
||
|
rb_raise(rb_eTypeError, "no implicit conversion from boolean");
|
||
|
return Qnil; /* not reached */
|
||
|
break;
|
||
|
default:
|
||
|
val = rb_to_int(val);
|
||
|
return NUM2ULL(val);
|
||
|
}
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
#endif /* HAVE_LONG_LONG */
|
||
| vm_insnhelper.c (working copy) | ||
|---|---|---|
|
break;
|
||
|
default:
|
||
|
rb_raise(rb_eArgError, "too many arguments(%d)", len);
|
||
|
return Qundef; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
}
|
||
| ruby.c (working copy) | ||
|---|---|---|
|
case Qtrue:
|
||
|
return INT2FIX(2);
|
||
|
}
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
void
|
||
| bignum.c (working copy) | ||
|---|---|---|
|
rb_raise(rb_eTypeError, "can't coerce %s to Bignum",
|
||
|
rb_obj_classname(y));
|
||
|
}
|
||
|
/* not reached */
|
||
|
return Qnil;
|
||
|
UNREACHABLE;
|
||
|
}
|
||
|
/*
|
||
| file.c (working copy) | ||
|---|---|---|
|
else {
|
||
|
rb_raise(rb_eArgError, "unknown command \"\\x%02X\"", cmd);
|
||
|
}
|
||
|
return Qnil; /* not reached */
|
||
|
UNREACHABLE;
|
||
|
}
|
||
- « Previous
- 1
- …
- 9
- 10
- 11
- Next »