Skip to content
Snippets Groups Projects
Commit d9c4492f authored by Sven M. Hallberg's avatar Sven M. Hallberg
Browse files

silence gcc about "possible" (impossible) use of uninitialized variable

parent 0f9be192
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ void *sloballoc(SLOB *slob, size_t size) ...@@ -71,7 +71,7 @@ void *sloballoc(SLOB *slob, size_t size)
void slobfree(SLOB *slob, void *a_) void slobfree(SLOB *slob, void *a_)
{ {
struct alloc *a = a_ - sizeof(struct alloc); struct alloc *a = a_ - sizeof(struct alloc);
struct block *b, **p, *left=NULL, *right=NULL, **rightp; struct block *b, **p, *left=NULL, *right=NULL, **rightp=NULL;
// sanity check: a lies inside slob // sanity check: a lies inside slob
assert((void *)a >= (void *)slob->data); assert((void *)a >= (void *)slob->data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment