mem: silence annoying compiler warning

The compiler will optimize this away upon certain combinations of
Kconfig settings.
This commit is contained in:
Thomas Schoebel-Theuer 2022-12-02 04:00:08 +01:00
parent 5a6cfa7798
commit 09412a052e

View File

@ -836,6 +836,7 @@ void _brick_block_free(void *data, int len, int cline)
}
#endif
#ifdef BRICK_DEBUG_MEM
(void)prev_line; /* silence annoying compiler warning */
if (order > 1) {
void *test = data - PAGE_SIZE;
int magic = INT_ACCESS(test, 0);