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

This commit is contained in:
Sven M. Hallberg 2016-12-06 18:21:59 +01:00
parent 0f9be192b6
commit d9c4492fd9

View file

@ -71,7 +71,7 @@ void *sloballoc(SLOB *slob, size_t size)
void slobfree(SLOB *slob, void *a_)
{
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
assert((void *)a >= (void *)slob->data);