From 60e78f4ab4d45a1983083702cbb4afb09b213348 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 19:57:15 +0100 Subject: [PATCH] CalmaWriteZ.c: warning: variable 'rtype' is used uninitialized CalmaWriteZ.c:418:5: warning: variable 'rtype' is used uninitialized whenever 'if' condition is true clang18 -Wall warning cleanup [-Wsometimes-uninitialized] --- calma/CalmaWriteZ.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calma/CalmaWriteZ.c b/calma/CalmaWriteZ.c index cb6a01a2..80d0dbdb 100644 --- a/calma/CalmaWriteZ.c +++ b/calma/CalmaWriteZ.c @@ -406,7 +406,7 @@ calmaDumpStructureZ(def, outf, calmaDefHash, filename) HashTable *calmaDefHash; char *filename; { - int nbytes, rtype; + int nbytes = -1, rtype = 0; char *strname = NULL, *newnameptr; HashEntry *he, *he2; CellDef *edef;