Skip to content

Commit

Permalink
Possibly uninstantiated variable when compiled for debugging.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanWielemaker committed May 14, 2024
1 parent e7fbbb9 commit be3ff0b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/pl-pro.c
Original file line number Diff line number Diff line change
Expand Up @@ -723,16 +723,13 @@ check_data(DECL_LD Word p, chk_data *context)

while(isRef(*p))
{ assert(!is_marked(p));
p2 = unRef(*p);
if ( storage(*p) == STG_LOCAL ) /* PushPtr()/PopPtr() reference? */
{ for(int i=0; i<LD->tmp.top; i++)
{ if ( valTermRef(LD->tmp.h[i]) == p )
{ p2 = unRef(*p);
goto deref_ok;
}
}
printk(context, "Reference to local stack");
} else
{ p2 = unRef(*p);
}
deref_ok:
DEBUG(CHK_HIGHER_ADDRESS,
Expand Down

0 comments on commit be3ff0b

Please sign in to comment.