svn commit: r290847 - in head/contrib/netbsd-tests/lib/libc: gen regex

Garrett Cooper ngie at FreeBSD.org
Sun Nov 15 05:00:33 UTC 2015


Author: ngie
Date: Sun Nov 15 05:00:32 2015
New Revision: 290847
URL: https://svnweb.freebsd.org/changeset/base/290847

Log:
  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

Modified:
  head/contrib/netbsd-tests/lib/libc/gen/t_glob.c
  head/contrib/netbsd-tests/lib/libc/regex/debug.c

Modified: head/contrib/netbsd-tests/lib/libc/gen/t_glob.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/gen/t_glob.c	Sun Nov 15 04:51:14 2015	(r290846)
+++ head/contrib/netbsd-tests/lib/libc/gen/t_glob.c	Sun Nov 15 05:00:32 2015	(r290847)
@@ -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",

Modified: head/contrib/netbsd-tests/lib/libc/regex/debug.c
==============================================================================
--- head/contrib/netbsd-tests/lib/libc/regex/debug.c	Sun Nov 15 04:51:14 2015	(r290846)
+++ head/contrib/netbsd-tests/lib/libc/regex/debug.c	Sun Nov 15 05:00:32 2015	(r290847)
@@ -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) { \


More information about the svn-src-all mailing list