elf: Fix -DNDEBUG warning in _dl_start_args_adjust

This is another blocker for building glibc with the default
-Werror setting and -DNDEBUG.
This commit is contained in:
Florian Weimer 2022-06-28 10:40:16 +02:00
parent 5e89ed42fd
commit c1ada668a3

View file

@ -1307,7 +1307,7 @@ _dl_start_args_adjust (int skip_args)
return;
/* Sanity check. */
intptr_t argc = (intptr_t) sp[0] - skip_args;
intptr_t argc __attribute__ ((unused)) = (intptr_t) sp[0] - skip_args;
assert (argc == _dl_argc);
/* Adjust argc on stack. */