From 7cf15411bb23db62e4fb85d36f50f3d15371cc06 Mon Sep 17 00:00:00 2001 From: ngie Date: Sun, 15 Nov 2015 05:00:32 +0000 Subject: 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 --- contrib/netbsd-tests/lib/libc/regex/debug.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'contrib/netbsd-tests/lib/libc/regex/debug.c') 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) { \ -- cgit v1.1