summaryrefslogtreecommitdiff
path: root/backgraph.c
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2019-08-14 12:32:52 +0300
committerIvan Maidanski <ivmai@mail.ru>2019-08-14 12:32:52 +0300
commit45da1ff34050703d07d6410ffece69a642f12c4a (patch)
tree29bfdb3ae9b39aa826a53c3b64fe577d60958a63 /backgraph.c
parent7889a0864b2bc684a3e171fa9a6f77143bd9896b (diff)
downloadbdwgc-45da1ff34050703d07d6410ffece69a642f12c4a.tar.gz
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.
Diffstat (limited to 'backgraph.c')
-rw-r--r--backgraph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backgraph.c b/backgraph.c
index 8ea42512..7e33f42a 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;