From 3300f45a228eff4886420e49a89bcfe6a12858e9 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 4 Oct 2024 16:08:45 +0100 Subject: [PATCH] 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 --- drc/DRCtech.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drc/DRCtech.c b/drc/DRCtech.c index d5242355..a19e580f 100644 --- a/drc/DRCtech.c +++ b/drc/DRCtech.c @@ -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)) {