Project

General

Profile

Bug #6066 ยป return.combined.patch

Combined patch for core and ext/ - drbrain (Eric Hodel), 02/23/2012 09:39 AM

View differences:

encoding.c (working copy)
911 911
    }
912 912
    else
913 913
	rb_raise(rb_eArgError, "invalid byte sequence in %s", rb_enc_name(enc));
914

  
915
    return 0; /* not reached */
914 916
}
915 917

  
916 918
#undef rb_enc_codepoint
re.c (working copy)
1665 1665
	rb_raise(rb_eIndexError, "undefined group name reference: %s",
1666 1666
				 StringValuePtr(s));
1667 1667
    }
1668

  
1669
    return 0; /* not reached */
1668 1670
}
1669 1671

  
1670 1672
/*
object.c (working copy)
2470 2470
      default:
2471 2471
	return rb_convert_type(val, T_FLOAT, "Float", "to_f");
2472 2472
    }
2473

  
2474
    return Qnil; /* not reached */
2473 2475
}
2474 2476

  
2475 2477
/*
io.c (working copy)
2292 2292
        rb_eof_error();
2293 2293
    else
2294 2294
        return ret;
2295

  
2296
    return Qnil; /* not reached */
2295 2297
}
2296 2298

  
2297 2299
/*
......
2353 2355
        rb_eof_error();
2354 2356
    else
2355 2357
        return ret;
2358

  
2359
    return Qnil; /* not reached */
2356 2360
}
2357 2361

  
2358 2362
/*
pack.c (working copy)
2193 2193
	return 6;
2194 2194
    }
2195 2195
    rb_raise(rb_eRangeError, "pack(U): value out of range");
2196

  
2197
    return 0; /* not reached */
2196 2198
}
2197 2199

  
2198 2200
static const unsigned long utf8_limits[] = {
proc.c (working copy)
1665 1665
      }
1666 1666
    }
1667 1667
    rb_bug("rb_method_entry_arity: invalid method entry type (%d)", def->type);
1668

  
1669
    return 0; /* not reached */
1668 1670
}
1669 1671

  
1670 1672
/*
vm_method.c (working copy)
64 64
rb_f_notimplement(int argc, VALUE *argv, VALUE obj)
65 65
{
66 66
    rb_notimplement();
67

  
68
    return Qnil; /* not reached */
67 69
}
68 70

  
69 71
static void
struct.c (working copy)
681 681
	}
682 682
    }
683 683
    rb_name_error(id, "no member '%s' in struct", rb_id2name(id));
684

  
685
    return Qnil; /* not reached */
684 686
}
685 687

  
686 688
/*
class.c (working copy)
1661 1661
    else
1662 1662
	rb_raise(rb_eArgError, "wrong number of arguments (%d for %d%s)",
1663 1663
		 argc, n_mand, f_var ? "+" : "");
1664

  
1665
    return 0; /* not reached */
1664 1666
}
1665 1667

  
1666 1668
/*!
process.c (working copy)
3791 3791
        return r;
3792 3792

  
3793 3793
    rb_raise(rb_eArgError, "invalid resource name: %s", name);
3794

  
3795
    return 0; /* not reached */
3794 3796
}
3795 3797

  
3796 3798
static rlim_t
......
3829 3831
    if (strcmp(name, "SAVED_CUR") == 0) return RLIM_SAVED_CUR;
3830 3832
#endif
3831 3833
    rb_raise(rb_eArgError, "invalid resource value: %s", name);
3834

  
3835
    return (rlim_t)0; /* not reached */
3832 3836
}
3833 3837
#endif
3834 3838

  
......
5493 5497
	errno = EPERM;
5494 5498
	rb_sys_fail(0);
5495 5499
    }
5500

  
5501
    return Qnil; /* not reached */
5496 5502
}
5497 5503
#else
5498 5504
static VALUE
......
5603 5609
	errno = EPERM;
5604 5610
	rb_sys_fail(0);
5605 5611
    }
5612

  
5613
    return Qnil; /* not reached */
5606 5614
}
5607 5615
#else
5608 5616
static VALUE
ext/digest/digest.c (working copy)
154 154
rb_digest_instance_update(VALUE self, VALUE str)
155 155
{
156 156
    rb_digest_instance_method_unimpl(self, "update");
157

  
158
    return Qnil; /* not reached */
157 159
}
158 160

  
159 161
/*
......
172 174
rb_digest_instance_finish(VALUE self)
173 175
{
174 176
    rb_digest_instance_method_unimpl(self, "finish");
177

  
178
    return Qnil; /* not reached */
175 179
}
176 180

  
177 181
/*
......
186 190
rb_digest_instance_reset(VALUE self)
187 191
{
188 192
    rb_digest_instance_method_unimpl(self, "reset");
193

  
194
    return Qnil; /* not reached */
189 195
}
190 196

  
191 197
/*
......
409 415
rb_digest_instance_block_length(VALUE self)
410 416
{
411 417
    rb_digest_instance_method_unimpl(self, "block_length");
418

  
419
    return Qnil; /* not reached */
412 420
}
413 421

  
414 422
/*
ext/bigdecimal/bigdecimal.c (working copy)
971 971
    }
972 972

  
973 973
    rb_bug("Undefined operation in BigDecimalCmp()");
974

  
975
    return Qnil; /* not reached */
974 976
}
975 977

  
976 978
/* Returns True if the value is zero. */
ext/dl/handle.c (working copy)
78 78
	return INT2NUM(ret);
79 79
    }
80 80
    rb_raise(rb_eDLError, "dlclose() called too many times");
81

  
82
    return Qnil; /* not reached */
81 83
}
82 84

  
83 85
VALUE
ext/tk/tcltklib.c (working copy)
1407 1407
    } else {
1408 1408
        return 0;
1409 1409
    }
1410

  
1411
    return 0; /* not reached */
1410 1412
}
1411 1413

  
1412 1414
static int
......
1448 1450
    } else {
1449 1451
        return 0;
1450 1452
    }
1453

  
1454
    return 0; /* not reached */
1451 1455
}
1452 1456

  
1453 1457

  
......
7781 7785
#if TCL_MAJOR_VERSION < 8 || (TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION < 6)
7782 7786
    rb_raise(rb_eNotImpError,
7783 7787
	     "cancel_eval is supported Tcl/Tk8.6 or later.");
7788

  
7789
    return 0; /* not reached */
7784 7790
#else
7785 7791
    Tcl_Obj *msg_obj;
7786 7792

  
......
10014 10020
    default:
10015 10021
      rb_raise(rb_eRuntimeError, "tcltklib has invalid release type number");
10016 10022
    }
10023

  
10024
    return Qnil; /* not reached */
10017 10025
}
10018 10026

  
10019 10027

  
......
10117 10125
      return Qnil;
10118 10126
    }
10119 10127
  }
10128

  
10129
  return Qnil; /* not reached */
10120 10130
#else
10121 10131
    return name;
10122 10132
#endif
ext/tk/tkutil/tkutil.c (working copy)
803 803
        }
804 804
        rb_raise(rb_eArgError, "Hash is expected for 1st argument");
805 805
    }
806

  
807
    return Qnil; /* not reached */
806 808
}
807 809

  
808 810
static VALUE
ext/fiddle/conversions.c (working copy)
134 134
      default:
135 135
	rb_raise(rb_eRuntimeError, "unknown type %d", type);
136 136
    }
137

  
138
    return Qnil; /* not reached */
137 139
}
138 140

  
139 141
/* vim: set noet sw=4 sts=4 */
ext/socket/raddrinfo.c (working copy)
2144 2144
      default:
2145 2145
        rb_raise(rb_eTypeError, "neither IO nor file descriptor");
2146 2146
    }
2147

  
2148
    return Qnil; /* not reached */
2147 2149
}
2148 2150

  
2149 2151
/*
ext/socket/socket.c (working copy)
1334 1334
  error_exit_name:
1335 1335
    if (res) freeaddrinfo(res);
1336 1336
    rsock_raise_socket_error("getnameinfo", error);
1337

  
1338
  return Qnil; /* not reached */
1337 1339
}
1338 1340

  
1339 1341
/*
ext/ripper/eventids2.c (working copy)
274 274
        return ripper_id_CHAR;
275 275
    }
276 276
    rb_raise(rb_eRuntimeError, "[Ripper FATAL] unknown token %d", tok);
277

  
278
    return (ID)NULL; /* not reached */
277 279
}
cont.c (working copy)
1110 1110
	fib->prev = Qnil;
1111 1111
	return prev;
1112 1112
    }
1113

  
1114
    return Qnil; /* not reached */
1113 1115
}
1114 1116

  
1115 1117
VALUE rb_fiber_transfer(VALUE fib, int argc, VALUE *argv);
dmydln.c (working copy)
4 4
dln_load(const char *file)
5 5
{
6 6
    rb_loaderror("this executable file can't load extension libraries");
7

  
8
    return NULL;
7 9
}
vm_insnhelper.c (working copy)
1464 1464
    else {
1465 1465
	rb_bug("vm_search_normal_superclass: should not be reach here");
1466 1466
    }
1467

  
1468
    return Qnil; /* not reached */
1467 1469
}
1468 1470

  
1469 1471
static void
bignum.c (working copy)
2992 2992
	goto bignum;
2993 2993
    }
2994 2994
    rb_bug("big_fdiv");
2995
    /* NOTREACHED */
2995

  
2996
    return Qnil; /* NOTREACHED */
2996 2997
}
2997 2998

  
2998 2999
/*
marshal.c (working copy)
1143 1143
	return (ID)id;
1144 1144
    }
1145 1145
    rb_raise(rb_eArgError, "bad symbol");
1146

  
1147
    return (ID)NULL; /* not reached */
1146 1148
}
1147 1149

  
1148 1150
static ID
......
1190 1192
	rb_raise(rb_eArgError, "dump format error for symbol(0x%x)", type);
1191 1193
	break;
1192 1194
    }
1195

  
1196
    return (ID)NULL; /* not reached */
1193 1197
}
1194 1198

  
1195 1199
static VALUE