From 0a4e2a5a2781de88944f9588e2e3ebb44b66d360 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Wed, 2 Oct 2024 06:59:00 +0100 Subject: [PATCH] HashGetValue: warning: comparison between pointer and integer GCC14 --without-tk --without-tcl Related issue: https://github.com/RTimothyEdwards/magic/issues/323 --- database/DBcellname.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/DBcellname.c b/database/DBcellname.c index b554b5af..4f56a190 100644 --- a/database/DBcellname.c +++ b/database/DBcellname.c @@ -1700,7 +1700,7 @@ DBCellNewDef(cellName) cellName = UNNAMED; entry = HashFind(&dbCellDefTable, cellName); - if (HashGetValue(entry) != (ClientData) NULL) + if (HashGetValue(entry) != NULL) return ((CellDef *) NULL); cellDef = DBCellDefAlloc(); @@ -1861,7 +1861,7 @@ DBCellRenameDef(cellDef, newName) ASSERT(HashGetValue(oldEntry) == (ClientData) cellDef, "DBCellRenameDef"); newEntry = HashFind(&dbCellDefTable, newName); - if (HashGetValue(newEntry) != (ClientData) NULL) + if (HashGetValue(newEntry) != NULL) return (FALSE); HashSetValue(oldEntry, (ClientData) NULL);