From: Mark Andrews Date: Wed, 27 Feb 2013 04:57:09 +0000 (+1100) Subject: silence compiler warnings X-Git-Tag: v9.10.0a1~478^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fdc5f1702e7357d21d6ce9e97f54349a97fc8418;p=thirdparty%2Fbind9.git silence compiler warnings --- diff --git a/lib/isc/tests/regex_test.c b/lib/isc/tests/regex_test.c index fcf4534103a..70510a09e26 100644 --- a/lib/isc/tests/regex_test.c +++ b/lib/isc/tests/regex_test.c @@ -1073,6 +1073,7 @@ ATF_TC_BODY(regex_validate, tc) { unsigned int i; int r; + UNUSED(tc); #ifdef HAVE_REGEX_H /* @@ -1091,9 +1092,9 @@ ATF_TC_BODY(regex_validate, tc) { else if (r == 0 && preg.re_nsub != (unsigned int)tests[i].expect && !tests[i].exception) { - fprintf(stderr, "%s preg.re_nsub %ld expected %d\n", - tests[i].expression, preg.re_nsub, - tests[i].expect); + fprintf(stderr, "%s preg.re_nsub %lu expected %d\n", + tests[i].expression, + (unsigned long)preg.re_nsub, tests[i].expect); tests[i].expect = preg.re_nsub; } if (r == 0)