configure: fix elftest when warnings enabled

If compile testing with -W then elftest.c would fail because
of unused variables.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Hemminger 2016-12-14 19:09:55 -08:00
parent 8b59612f99
commit 9f9ccc89f7
1 changed files with 2 additions and 2 deletions

4
configure vendored
View File

@ -264,8 +264,8 @@ check_elf()
#include <gelf.h>
int main(void)
{
Elf_Scn *scn;
GElf_Shdr shdr;
Elf_Scn *scn __attribute__((__unused__));
GElf_Shdr shdr __attribute__((__unused__));;
return elf_version(EV_CURRENT);
}
EOF