diff options
author | ngie <ngie@FreeBSD.org> | 2015-11-15 05:00:32 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-11-15 05:00:32 +0000 |
commit | 7cf15411bb23db62e4fb85d36f50f3d15371cc06 (patch) | |
tree | e2774a66a2f5374c8e642059c9677ab84735ec5c /contrib/netbsd-tests | |
parent | 4ded20769a38fabb4ed4d123468d652a3371dcfa (diff) | |
download | FreeBSD-src-7cf15411bb23db62e4fb85d36f50f3d15371cc06.zip FreeBSD-src-7cf15411bb23db62e4fb85d36f50f3d15371cc06.tar.gz |
Fix -Wunused warnings with variables used unlit code by adding appropriate #ifdef
guards around the variables
MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'contrib/netbsd-tests')
-rw-r--r-- | contrib/netbsd-tests/lib/libc/gen/t_glob.c | 2 | ||||
-rw-r--r-- | contrib/netbsd-tests/lib/libc/regex/debug.c | 4 |
2 files changed, 6 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", diff --git a/contrib/netbsd-tests/lib/libc/regex/debug.c b/contrib/netbsd-tests/lib/libc/regex/debug.c index f1d2b15..fd2e467 100644 --- a/contrib/netbsd-tests/lib/libc/regex/debug.c +++ b/contrib/netbsd-tests/lib/libc/regex/debug.c @@ -126,11 +126,15 @@ static void s_print(struct re_guts *g, FILE *d) { sop *s; +#ifdef __NetBSD__ cset *cs; +#endif int done = 0; sop opnd; int col = 0; +#ifdef __NetBSD__ ssize_t last; +#endif sopno offset = 2; # define GAP() { if (offset % 5 == 0) { \ if (col > 40) { \ |