Project

General

Profile

Bug #6066 ยป core.return.patch

Patch for C files in the project root - 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
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