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-09 21:34:12 -04:00
committed by Tim Edwards
parent 35604400ed
commit 7fd116c828
+2 -1
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++;
}