gaMain.c: warning: variable 'errs' is used uninitialized

gaMain.c:287:9: warning: variable 'errs' is used uninitialized whenever 'if' condition is true

clang18 -Wall warning cleanup [-Wsometimes-uninitialized]
This commit is contained in:
Darryl L. Miles 2024-10-04 20:02:23 +01:00 committed by Tim Edwards
parent 7fd116c828
commit 38c14a0ad9
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ GARouteCmd(routeUse, netListName)
CellUse *routeUse; CellUse *routeUse;
char *netListName; char *netListName;
{ {
int errs; int errs = -1;
NLNetList netList; NLNetList netList;
GCRChannel *ch; GCRChannel *ch;
NLNet *net; NLNet *net;