mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/tk/tcltklib.c (ip_rbUpdateCommand, ip_rb_threadUpdateCommand):
get rid of warnings with Tcl/Tk 8.3 or former. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4a4ff7fac1
commit
90bdc33677
2 changed files with 6 additions and 3 deletions
|
@ -2909,7 +2909,7 @@ ip_rbUpdateCommand(clientData, interp, objc, objv)
|
|||
flags = TCL_ALL_EVENTS|TCL_DONT_WAIT;
|
||||
|
||||
} else if (objc == 2) {
|
||||
if (Tcl_GetIndexFromObj(interp, objv[1], updateOptions,
|
||||
if (Tcl_GetIndexFromObj(interp, objv[1], (CONST84 char **)updateOptions,
|
||||
"option", 0, &optionIndex) != TCL_OK) {
|
||||
return TCL_ERROR;
|
||||
}
|
||||
|
@ -3060,7 +3060,7 @@ ip_rb_threadUpdateCommand(clientData, interp, objc, objv)
|
|||
flags = TCL_ALL_EVENTS|TCL_DONT_WAIT;
|
||||
|
||||
} else if (objc == 2) {
|
||||
if (Tcl_GetIndexFromObj(interp, objv[1], updateOptions,
|
||||
if (Tcl_GetIndexFromObj(interp, objv[1], (CONST84 char **)updateOptions,
|
||||
"option", 0, &optionIndex) != TCL_OK) {
|
||||
return TCL_ERROR;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue