summaryrefslogtreecommitdiff
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
commit715c1af37dddb6bead6c935b4db43103831b25d4 (patch)
treeb5055176f6c1262812cdfe712edf98557841a46d
parent519eec86ee4e0ca3654b37a53da313c1e6c34571 (diff)
downloadATCD-715c1af37dddb6bead6c935b4db43103831b25d4.tar.gz
wrapped some variables and functions with #ifndef ACE_LACKS_FORK, to avoid
warnings on VxWorks.
-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;