From fca0c2945d87f7ee7f0a745d74783edc8917287e Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 19:56:12 +0100 Subject: [PATCH] CalmaWrite.c: warning: variable 'rtype' is used uninitialized CalmaWrite.c:442:5: warning: variable 'rtype' is used uninitialized whenever 'if' condition is true clang18 -Wall warning cleanup [-Wsometimes-uninitialized] --- calma/CalmaWrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calma/CalmaWrite.c b/calma/CalmaWrite.c index b90c6d6f..6809b98d 100644 --- a/calma/CalmaWrite.c +++ b/calma/CalmaWrite.c @@ -430,7 +430,7 @@ calmaDumpStructure(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;