mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
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:
committed by
Tim Edwards
parent
35604400ed
commit
7fd116c828
+2
-1
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user