From 45da1ff34050703d07d6410ffece69a642f12c4a Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 14 Aug 2019 12:32:52 +0300 Subject: [PATCH] Fix 'condition pred!=NULL is always true' compiler warning Duplicate check of pred!=NULL is removed in add_edge. * backgraph.c [MAKE_BACK_GRAPH] (add_edge): Remove pred!=NULL. --- backgraph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backgraph.c b/backgraph.c index 8ea4251..7e33f42 100644 --- a/backgraph.c +++ b/backgraph.c @@ -240,7 +240,7 @@ static void add_edge(ptr_t p, ptr_t q) if (((word)pred & FLAG_MANY) != 0) { n_edges = e -> n_edges; - } else if (pred != NULL && ((word)pred & 1) == 0) { + } else if (((word)pred & 1) == 0) { /* A misinterpreted freelist link. */ n_edges = 1; local = -1; -- 2.7.4