From cbf97f77ee9dca1034d6bc0a471e7ef5d6843704 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 19:38:09 +0100 Subject: [PATCH] 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] --- drc/DRCcif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drc/DRCcif.c b/drc/DRCcif.c index d597ec57..54a359f3 100644 --- a/drc/DRCcif.c +++ b/drc/DRCcif.c @@ -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)