DRCcif.c: 'thislayer' is used uninitialized

DRCcif.c:1193:17: warning: variable 'thislayer' is used uninitialized whenever 'for' loop exits because its condition is false
DRCcif.c:1255:17: warning: variable 'thislayer' is used uninitialized whenever 'for' loop exits because its condition is false

clang18 -Wall warning cleanup [-Wsometimes-uninitialized]
This commit is contained in:
Darryl L. Miles 2024-10-04 19:38:09 +01:00 committed by Tim Edwards
parent 489de7fdb4
commit cbf97f77ee
1 changed files with 2 additions and 2 deletions

View File

@ -1184,7 +1184,7 @@ drcCifArea(argc, argv)
DRCCookie *dpnext, *dpnew;
TileType i, j;
int plane;
int thislayer;
int thislayer = -1;
int scalefactor;
if (drcCifStyle == NULL)
@ -1246,7 +1246,7 @@ drcCifMaxwidth(argc, argv)
TileType i, j;
int plane;
int bend;
int thislayer;
int thislayer = -1;
int scalefactor;
if (drcCifStyle == NULL)