summaryrefslogtreecommitdiff
path: root/test/testnames.c
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2013-03-24 15:34:58 +0000
committerJeff Trawick <trawick@apache.org>2013-03-24 15:34:58 +0000
commita04b5eefd870ccd98111d6d7fa1fc098cad55df5 (patch)
tree84fc817d88946c7672d68fe51becea2b5903d584 /test/testnames.c
parent7512acfe1ab82369499038939ca8bdb1d77c568c (diff)
downloadapr-a04b5eefd870ccd98111d6d7fa1fc098cad55df5.tar.gz
hide an unused variable on Unix
git-svn-id: https://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.c4
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,