Created attachment 89339 [details]
Avoid warnings about unused parameter in scandir checks.
The scandir checks can fail because "comp" function inside the checks have some unused parameters. Normally the gcc does not warn (and errs because of -Werror here), but I had -Wall in CFLAGS and the checks failed.
Attached patch should fix the issue.
Ugh. We shouldn't have -Werror to begin with.
Well, -Werror was required to check if posix_fadvise() is exactly available on the system. see Bug#52573 for more details. so I can't get rid of it unless we have any better idea for that issue. that said we can just turn it off for scandir testing.
Hmm, it may be also required to check scandir for NetBSD which has taken the callback function with different arguments.
Okay, fixed in git with the different way. that should works.