From 40889248ccce91c6e606667be69b2af45976d398 Mon Sep 17 00:00:00 2001 From: Krzesimir Nowak Date: Sat, 16 Nov 2013 22:26:13 +0100 Subject: [PATCH] Make check for scandir more reliable against warnings. Avoid warnings about unused parameters. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 4478914..688c8e2 100644 --- a/configure.ac +++ b/configure.ac @@ -169,7 +169,7 @@ if test "$os_win32" = "no"; then AC_LINK_IFELSE([AC_LANG_SOURCE([[ #include int comp(const struct dirent **, const struct dirent **); - int comp(const struct dirent **a, const struct dirent **b) { return 0; } + int comp(const struct dirent **a, const struct dirent **b) { (void)a; (void)b; return 0; } int main(void) { struct dirent **d; return scandir(".", &d, 0, &comp) >= 0; @@ -181,7 +181,7 @@ if test "$os_win32" = "no"; then AC_LINK_IFELSE([AC_LANG_SOURCE([[ #include int comp(const void *, const void *); - int comp(const void *a, const void *b) { return 0; } + int comp(const void *a, const void *b) { (void)a; (void)b; return 0; } int main(void) { struct dirent **d; return scandir(".", &d, 0, &comp) >= 0; -- 1.8.4.2