Skip to content

Commit

Permalink
Tk.xs: Grab() method should not return anything
Browse files Browse the repository at this point in the history
Address ParseXS warning:

Warning: Found a 'CODE' section which seems to be using 'RETVAL'
but no 'OUTPUT' section. in Tk.xs, line 1030
  • Loading branch information
chrstphrchvz committed Mar 15, 2021
1 parent 1d43c8a commit 3509c76
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Tk.xs
Original file line number Diff line number Diff line change
Expand Up @@ -1019,14 +1019,17 @@ CODE:
OUTPUT:
RETVAL

int
void
Tk_Grab(win,global)
SV * win
int global
CODE:
{
Lang_CmdInfo *info = WindowCommand(win,NULL,3);
RETVAL = Tk_Grab(info->interp,info->tkwin,global);
if (Tk_Grab(info->interp,info->tkwin,global) != TCL_OK)
{
croak("%s",Tcl_GetStringResult(info->interp));
}
}

SV *
Expand Down

0 comments on commit 3509c76

Please sign in to comment.