From fece689c436903c4f96e6557d01180b754b3eb7a Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 19:55:22 +0100 Subject: [PATCH] CalmaRdpt.c: warning: variable 'rtype' is used uninitialized CalmaRdpt.c:525:5: warning: variable 'rtype' is used uninitialized whenever 'if' condition is true CalmaRdpt.c:792:5: warning: variable 'rtype' is used uninitialized whenever 'if' condition is true clang18 -Wall warning cleanup [-Wsometimes-uninitialized] --- calma/CalmaRdpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/calma/CalmaRdpt.c b/calma/CalmaRdpt.c index 146f3276..0b4cf92d 100644 --- a/calma/CalmaRdpt.c +++ b/calma/CalmaRdpt.c @@ -503,7 +503,7 @@ calmaElementBox() void calmaElementPath() { - int nbytes, rtype, extend1, extend2; + int nbytes = -1, rtype = 0, extend1, extend2; int layer, dt, width, pathtype, ciftype, savescale; int xmin, ymin, xmax, ymax, temp; CIFPath *pathheadp, *pathp, *previousp; @@ -733,7 +733,7 @@ calmaElementText() { static int ignore[] = { CALMA_PATHTYPE, CALMA_WIDTH, -1 }; char *textbody = NULL; - int nbytes, rtype; + int nbytes = -1, rtype = 0; int layer, textt, cifnum, textpres; TileType type; Rect r;