irRoute.c: warning: expression which evaluates to zero treated as a null pointer ...

Use of FALSE instead of NULL on a pointer type.

irRoute.c:1101:19: warning: expression which evaluates to zero treated
  as a null pointer constant of type 'RouteContact *'
  (aka 'struct routecontact *')

clang18 default warning cleanup [-Wnon-literal-null-conversion]
This commit is contained in:
Darryl L. Miles 2024-10-04 18:51:35 +01:00 committed by Tim Edwards
parent 4460c5f1f5
commit ade50dfc88
1 changed files with 1 additions and 1 deletions

View File

@ -1098,7 +1098,7 @@ irChooseEndPtLayers(routeUse,expansionMask,endPt,argLayers,endPtName)
} }
TxPrintf("\n"); TxPrintf("\n");
for(pickedRC=FALSE,l=presentContacts; l && !pickedRC; l=LIST_TAIL(l)) for(pickedRC=NULL,l=presentContacts; l && !pickedRC; l=LIST_TAIL(l))
{ {
rC = (RouteContact *) LIST_FIRST(l); rC = (RouteContact *) LIST_FIRST(l);
if (!LIST_TAIL(l) && !presentLayers) if (!LIST_TAIL(l) && !presentLayers)