Skip to content

Commit

Permalink
Add explicit braces to avoid dangling "else" (#1248)
Browse files Browse the repository at this point in the history
Addresses -Wdangling-else compiler warning.
  • Loading branch information
nilason committed Feb 2, 2021
1 parent 1c358bc commit 7b1c476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion raster/r.surf.idw/ll.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ int find_neighbors_LL(EW * ewptr, NEIGHBOR * nbr_head, SHORT row, SHORT col,
else if (!replace_neighbor(Mptr, nbr_head, distance))
*active = FALSE; /* curtail search in this direction */

if (*active)
if (*active) {
if (westward)
extend_west(ewptr);
else
extend_east(ewptr);
}
}

active = &ewptr->ealive;
Expand Down

0 comments on commit 7b1c476

Please sign in to comment.