DRCtech.c: warning: use of logical '&&' with constant operand

Looks like logic error hiding behind warning

DRCtech.c:4365:22: warning: use of logical '&&' with constant
 operand [-Wconstant-logical-operand]
DRCtech.c:4365:22: note: remove constant to silence this warning

clang18 default warning cleanup
This commit is contained in:
Darryl L. Miles 2024-10-04 16:08:45 +01:00 committed by Tim Edwards
parent da2c7b719e
commit 3300f45a22
1 changed files with 1 additions and 1 deletions

View File

@ -4362,7 +4362,7 @@ DRCGetDefaultLayerSurround(ttype1, ttype2)
cset = &cptr->drcc_corner;
if (TTMaskHasType(set, TT_SPACE) && !TTMaskHasType(set, ttype1))
if ((TTMaskHasType(cset, ttype2)) &&
(cptr->drcc_flags && DRC_BOTHCORNERS) &&
(cptr->drcc_flags & DRC_BOTHCORNERS) &&
(cptr->drcc_edgeplane == cptr->drcc_plane) &&
(cptr->drcc_dist == cptr->drcc_cdist))
{