summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libc/gen/t_glob.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-11-19 00:25:58 +0000
committerngie <ngie@FreeBSD.org>2015-11-19 00:25:58 +0000
commit55105c5c246d765a4cbb8ce13fc620bfc0cbdfba (patch)
treed984fd0664dab87202ffa6a378a72e1177b7059e /contrib/netbsd-tests/lib/libc/gen/t_glob.c
parent0e1eba29ebfb5b57e23cb68dcba44137c4b6eff3 (diff)
downloadFreeBSD-src-55105c5c246d765a4cbb8ce13fc620bfc0cbdfba.zip
FreeBSD-src-55105c5c246d765a4cbb8ce13fc620bfc0cbdfba.tar.gz
MFC r290847:
Fix -Wunused warnings with variables used unlit code by adding appropriate #ifdef guards around the variables Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests/lib/libc/gen/t_glob.c')
-rw-r--r--contrib/netbsd-tests/lib/libc/gen/t_glob.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/lib/libc/gen/t_glob.c b/contrib/netbsd-tests/lib/libc/gen/t_glob.c
index 198148c..0572a42 100644
--- a/contrib/netbsd-tests/lib/libc/gen/t_glob.c
+++ b/contrib/netbsd-tests/lib/libc/gen/t_glob.c
@@ -91,9 +91,11 @@ static struct gl_dir d[] = {
{ "a/b", b, __arraycount(b), 0 },
};
+#ifndef __FreeBSD__
static const char *glob_star[] = {
"a/1", "a/3", "a/4", "a/b", "a/b/w", "a/b/x", "a/b/y", "a/b/z",
};
+#endif
static const char *glob_star_not[] = {
"a/1", "a/3", "a/4", "a/b",
OpenPOWER on IntegriCloud