]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
configure: fix elftest when warnings enabled
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 15 Dec 2016 03:09:55 +0000 (19:09 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 15 Dec 2016 03:11:02 +0000 (19:11 -0800)
If compile testing with -W then elftest.c would fail because
of unused variables.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
configure

index 6c431c31042b4472e554d373e58009ca89133319..88cbdb825689c1e257a656141ff89caf792215df 100755 (executable)
--- a/configure
+++ b/configure
@@ -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