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]
This commit is contained in:
parent
b654647fdc
commit
7dfdf5aa63
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue