tclmagic.c: warning: variable 'arg0' is used uninitialized

tclmagic.c:448:9: warning: variable 'arg0' is used uninitialized whenever 'if' condition is false

clang18 -Wall warning cleanup [-Wsometimes-uninitialized]
This commit is contained in:
Darryl L. Miles 2024-10-04 19:59:55 +01:00 committed by Tim Edwards
parent 35604400ed
commit 7fd116c828
1 changed files with 2 additions and 1 deletions

View File

@ -445,6 +445,8 @@ _tk_dispatch(ClientData clientData,
char *arg0;
Point txp;
arg0 = argv[0];
if (GrWindowIdPtr)
{
/* Key macros set the point from the graphics module code but */
@ -466,7 +468,6 @@ _tk_dispatch(ClientData clientData,
txp.p_y = 20;
}
TxSetPoint(txp.p_x, txp.p_y, id);
arg0 = argv[0];
argc--;
argv++;
}