summaryrefslogtreecommitdiff
path: root/ACE/tests/Dirent_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/Dirent_Test.cpp')
-rw-r--r--ACE/tests/Dirent_Test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ACE/tests/Dirent_Test.cpp b/ACE/tests/Dirent_Test.cpp
index df756c8d4c2..4e6d871f34f 100644
--- a/ACE/tests/Dirent_Test.cpp
+++ b/ACE/tests/Dirent_Test.cpp
@@ -180,7 +180,7 @@ dirent_test (void)
ACE_ERROR_RETURN
((LM_ERROR, ACE_TEXT ("open of dir %s failed\n"), TestDir.c_str()), -1);
- for (ACE_DIRENT *directory;
+ for (ACE_DIRENT *directory = 0;
(directory = dir.read ()) != 0;
entrycount++)
{
@@ -249,6 +249,8 @@ dirent_count (const ACE_TCHAR *dir_path,
dir_path),
-1);
# endif
+#else
+ ACE_UNUSED_ARG (dir_path);
#endif /* !ACE_LACKS_CHDIR */
ACE_Dirent dir;