Index: ext/tk/tcltklib.c =================================================================== --- ext/tk/tcltklib.c (revision 34755) +++ ext/tk/tcltklib.c (working copy) @@ -1407,6 +1407,8 @@ pending_exception_check0() } else { return 0; } + + return 0; /* not reached */ } static int @@ -1448,6 +1450,8 @@ pending_exception_check1(thr_crit_bup, p } else { return 0; } + + return 0; /* not reached */ } @@ -7781,6 +7785,8 @@ ip_cancel_eval_core(interp, msg, flag) #if TCL_MAJOR_VERSION < 8 || (TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION < 6) rb_raise(rb_eNotImpError, "cancel_eval is supported Tcl/Tk8.6 or later."); + + return 0; /* not reached */ #else Tcl_Obj *msg_obj; @@ -10014,6 +10020,8 @@ lib_get_reltype_name(self) default: rb_raise(rb_eRuntimeError, "tcltklib has invalid release type number"); } + + return Qnil; /* not reached */ } @@ -10117,6 +10125,8 @@ create_dummy_encoding_for_tk_core(interp return Qnil; } } + + return Qnil; /* not reached */ #else return name; #endif Index: ext/tk/tkutil/tkutil.c =================================================================== --- ext/tk/tkutil/tkutil.c (revision 34755) +++ ext/tk/tkutil/tkutil.c (working copy) @@ -803,6 +803,8 @@ tk_hash_kv(argc, argv, self) } rb_raise(rb_eArgError, "Hash is expected for 1st argument"); } + + return Qnil; /* not reached */ } static VALUE