From: Adhemerval Zanella Date: Fri, 25 Mar 2022 14:16:26 +0000 (-0300) Subject: elf: Remove unused variables in tests X-Git-Tag: glibc-2.36~419 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f60510ddafc62b81ed551b46db9761e408559322;p=thirdparty%2Fglibc.git elf: Remove unused variables in tests Checked on x86_64-linux-gnu and i686-linux-gnu. --- diff --git a/elf/nodel2mod1.c b/elf/nodel2mod1.c index acddc4cf8b2..61d8c0edb0c 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 acddc4cf8b2..61d8c0edb0c 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 249a2bae1c2..b75f9f1f1f8 100644 --- a/elf/reldep9mod1.c +++ b/elf/reldep9mod1.c @@ -9,9 +9,7 @@ void __attribute__((destructor)) bar (void) { - static int i; foo (); - ++i; } void