aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-25 11:16:26 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-31 08:59:23 -0300
commitf60510ddafc62b81ed551b46db9761e408559322 (patch)
treef1201f75ba50c21e6e244792eb74b7e9b43f46eb /elf
parentb2cd93fce666fdc8c9a5c64af2741a8a6940ac99 (diff)
downloadglibc-f60510ddafc62b81ed551b46db9761e408559322.tar
glibc-f60510ddafc62b81ed551b46db9761e408559322.tar.gz
glibc-f60510ddafc62b81ed551b46db9761e408559322.tar.bz2
glibc-f60510ddafc62b81ed551b46db9761e408559322.zip
elf: Remove unused variables in tests
Checked on x86_64-linux-gnu and i686-linux-gnu.
Diffstat (limited to 'elf')
-rw-r--r--elf/nodel2mod1.c2
-rw-r--r--elf/reldep8mod1.c2
-rw-r--r--elf/reldep9mod1.c2
3 files changed, 0 insertions, 6 deletions
diff --git a/elf/nodel2mod1.c b/elf/nodel2mod1.c
index acddc4cf8b..61d8c0edb0 100644
--- a/elf/nodel2mod1.c
+++ b/elf/nodel2mod1.c
@@ -9,9 +9,7 @@ void
__attribute__((destructor))
bar (void)
{
- static int i;
foo ();
- ++i;
}
void
baz (void)
diff --git a/elf/reldep8mod1.c b/elf/reldep8mod1.c
index acddc4cf8b..61d8c0edb0 100644
--- a/elf/reldep8mod1.c
+++ b/elf/reldep8mod1.c
@@ -9,9 +9,7 @@ void
__attribute__((destructor))
bar (void)
{
- static int i;
foo ();
- ++i;
}
void
baz (void)
diff --git a/elf/reldep9mod1.c b/elf/reldep9mod1.c
index 249a2bae1c..b75f9f1f1f 100644
--- a/elf/reldep9mod1.c
+++ b/elf/reldep9mod1.c
@@ -9,9 +9,7 @@ void
__attribute__((destructor))
bar (void)
{
- static int i;
foo ();
- ++i;
}
void