summaryrefslogtreecommitdiff
path: root/tests/Pipe_Test.cpp
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-13 14:59:50 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-11-13 14:59:50 +0000
commit6d28d42ce97f3dc4601dd69e461ecdda8829e84b (patch)
tree5875e7c42bfff00ae7fb05d4bf30bef81665673c /tests/Pipe_Test.cpp
parent5daea85a8b530c9bfecf8fb2ffd8191de26c6b21 (diff)
downloadATCD-6d28d42ce97f3dc4601dd69e461ecdda8829e84b.tar.gz
wrapped some variables and functions with #ifndef ACE_LACKS_FORK, to
avoid warnings on g++/VxWorks.
Diffstat (limited to 'tests/Pipe_Test.cpp')
-rw-r--r--tests/Pipe_Test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/Pipe_Test.cpp b/tests/Pipe_Test.cpp
index 07971699d08..84bbefad8ce 100644
--- a/tests/Pipe_Test.cpp
+++ b/tests/Pipe_Test.cpp
@@ -28,6 +28,7 @@ USELIB("..\ace\aced.lib");
//---------------------------------------------------------------------------
#endif /* defined(__BORLANDC__) && __BORLANDC__ >= 0x0530 */
+#if !defined (ACE_LACKS_FORK)
static int close_pipe = 1;
static int child_process = 0;
static int iterations = ACE_MAX_ITERATIONS;
@@ -79,11 +80,15 @@ open (ACE_Pipe &pipe,
if (close_pipe)
pipe.close ();
}
+#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 ("Pipe_Test");
ACE_ERROR ((LM_INFO, "fork is not supported on this platform\n"));
ACE_END_TEST;