From 7dfdf5aa63ed7272f524a0453c09371077c193bd Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 17:10:48 +0100 Subject: [PATCH] CIFrdcl.c: warning: comparison between two arrays Added pointer casts to hint to compiler the programmer intention is to compare as pointers to the start of the array (and not be concerned the programmer is overlooking the contents of the array). GCC14 -Wall cleanup series [-Warray-compare] --- cif/CIFrdcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cif/CIFrdcl.c b/cif/CIFrdcl.c index 44ad78fb..7d859077 100644 --- a/cif/CIFrdcl.c +++ b/cif/CIFrdcl.c @@ -389,7 +389,7 @@ CIFInputRescale(n, d) CIFScalePlanes(n, d, cifCurReadPlanes); if (cifCurReadPlanes != cifEditCellPlanes) CIFScalePlanes(n, d, cifEditCellPlanes); - if (cifEditCellPlanes != cifSubcellPlanes && cifCurReadPlanes != cifSubcellPlanes) + if ((const Plane*)cifEditCellPlanes != (const Plane*)cifSubcellPlanes && cifCurReadPlanes != cifSubcellPlanes) CIFScalePlanes(n, d, cifSubcellPlanes); CIFReadWarning("CIF style %s: units rescaled by factor of %d / %d\n",