From 9f9ccc89f7894998d713a61a537374849797cbe0 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Wed, 14 Dec 2016 19:09:55 -0800 Subject: [PATCH] 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 --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 6c431c310..88cbdb825 100755 --- a/configure +++ b/configure @@ -264,8 +264,8 @@ check_elf() #include 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 -- 2.47.2