summaryrefslogtreecommitdiff
path: root/tests/Process_Mutex_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-13 14:56:32 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-13 14:56:32 +0000
commitbcb9a68db38a16491bbab7da23942140f3bd2454 (patch)
treeb5055176f6c1262812cdfe712edf98557841a46d /tests/Process_Mutex_Test.cpp
parent359b2a502e5bef95cfeaca1d7e2d9edc13861501 (diff)
downloadATCD-bcb9a68db38a16491bbab7da23942140f3bd2454.tar.gz
wrapped some variables and functions with #ifndef ACE_LACKS_FORK, to avoid
warnings on VxWorks.
Diffstat (limited to 'tests/Process_Mutex_Test.cpp')
-rw-r--r--tests/Process_Mutex_Test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Process_Mutex_Test.cpp b/tests/Process_Mutex_Test.cpp
index 21fc819e509..3bec5f84551 100644
--- a/tests/Process_Mutex_Test.cpp
+++ b/tests/Process_Mutex_Test.cpp
@@ -28,6 +28,7 @@ USELIB("..\ace\aced.lib");
//---------------------------------------------------------------------------
#endif /* defined(__BORLANDC__) && __BORLANDC__ >= 0x0530 */
+#if !defined (ACE_LACKS_FORK)
static int release_mutex = 1;
static int child_process = 0;
static char *mutex_name = ACE_DEFAULT_MUTEX_A;
@@ -86,11 +87,15 @@ acquire_release (void)
ACE_ASSERT (mutex.release () == 0);
}
}
+#endif /* ! ACE_LACKS_FORK */
int
main (int argc, char *argv[])
{
#if defined (ACE_LACKS_FORK)
+ ACE_UNUSED_ARG (argc);
+ ACE_UNUSED_ARG (argv);
+
ACE_START_TEST ("Process_Mutex_Test");
ACE_ERROR ((LM_INFO, "fork is not supported on this platform\n"));
ACE_END_TEST;