summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2016-12-14 19:09:55 -0800
committerStephen Hemminger <stephen@networkplumber.org>2016-12-14 19:11:02 -0800
commit9f9ccc89f7894998d713a61a537374849797cbe0 (patch)
treeff509d6c3c166115f63fa3442ff0da05b75231c7 /configure
parent8b59612f99f6e854a3f918c40b843d8df240d1e5 (diff)
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index 6c431c31..88cbdb82 100755
--- 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