aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-06-28 10:40:16 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-06-28 10:40:16 +0200
commitc1ada668a381e122ee37cb8be7f0637111f63ea7 (patch)
tree6ab7029584daf97619cb20853ee78491f14dfa84
parent5e89ed42fd8997414732525c9460878d65363b3f (diff)
downloadglibc-c1ada668a381e122ee37cb8be7f0637111f63ea7.zip
glibc-c1ada668a381e122ee37cb8be7f0637111f63ea7.tar.gz
glibc-c1ada668a381e122ee37cb8be7f0637111f63ea7.tar.bz2
elf: Fix -DNDEBUG warning in _dl_start_args_adjust
This is another blocker for building glibc with the default -Werror setting and -DNDEBUG.
-rw-r--r--elf/rtld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/rtld.c b/elf/rtld.c
index f5a3d19..cbbaf4a 100644
--- a/elf/rtld.c
+++ b/elf/rtld.c
@@ -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. */