diff options
author | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2013-03-24 15:34:58 +0000 |
---|---|---|
committer | trawick <trawick@13f79535-47bb-0310-9956-ffa450edef68> | 2013-03-24 15:34:58 +0000 |
commit | 2ebb8525b6eb5f47103281953ac0430109d2fa3b (patch) | |
tree | 84fc817d88946c7672d68fe51becea2b5903d584 /test/testnames.c | |
parent | e28743dcf17f970f5ca4eecb59b3bc23ca1413f0 (diff) | |
download | libapr-2ebb8525b6eb5f47103281953ac0430109d2fa3b.tar.gz |
hide an unused variable on Unix
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1460405 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/testnames.c')
-rw-r--r-- | test/testnames.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/testnames.c b/test/testnames.c index 7a310faff..5afba0c44 100644 --- a/test/testnames.c +++ b/test/testnames.c @@ -269,7 +269,9 @@ static void root_from_cwd_and_back(abts_case *tc, void *data) const char *path = "//"; char *origpath; char *testpath; +#if defined(WIN32) || defined(OS2) || defined(NETWARE) int hadfailed; +#endif ABTS_INT_EQUAL(tc, APR_SUCCESS, apr_filepath_get(&origpath, 0, p)); path = origpath; @@ -308,7 +310,9 @@ static void root_from_cwd_and_back(abts_case *tc, void *data) | APR_FILEPATH_NOTABOVEROOT | APR_FILEPATH_NOTRELATIVE, p); ABTS_INT_EQUAL(tc, APR_SUCCESS, rv); +#if defined(WIN32) || defined(OS2) || defined(NETWARE) hadfailed = tc->failed; +#endif /* The API doesn't promise equality!!! * apr_filepath_get never promised a canonical filepath. * We'll emit noise under verbose so the user is aware, |