SIGN IN SIGN UP

mallocng: prevent stray ';' at top-level

The LOCK_OBJ_DEF macro is used with a trailing semicolon. However,
since the macro definition ends with the closing brace of a function
definition, the ISO C grammar does not allow an extra semicolon.

To fix this, swap the order of the two definitions, and drop the
semicolon from the __malloc_lock declaration.
M
Michael Forney committed
5c26c890ede40b5649d2ea23c51ea3ef34216486
Parent: 1b76ff0
Committed by Rich Felker <dalias@aerifal.cx> on 3/11/2026, 2:48:21 AM