diff options
author | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-02 15:55:08 +0000 |
---|---|---|
committer | levine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-07-02 15:55:08 +0000 |
commit | 9e048e3a381ce0e341dd9f3b273030eec3f9045a (patch) | |
tree | e99632f87b779cdd3e371e19209102bb070317a9 /tests | |
parent | 1e90f254ea8703ce1e353c9684a81ba32670a22f (diff) | |
download | ATCD-9e048e3a381ce0e341dd9f3b273030eec3f9045a.tar.gz |
tweaked the static functions a bit to avoid warnings about unused statics on VxWorks
Diffstat (limited to 'tests')
-rw-r--r-- | tests/SPIPE_Test.cpp | 2 | ||||
-rw-r--r-- | tests/UPIPE_SAP_Test.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/SPIPE_Test.cpp b/tests/SPIPE_Test.cpp index f47368c9e71..a08521d4f92 100644 --- a/tests/SPIPE_Test.cpp +++ b/tests/SPIPE_Test.cpp @@ -139,6 +139,8 @@ main (int, char *[]) #if defined (ACE_HAS_STREAM_PIPES) || defined (ACE_WIN32) spawn (); #else + if (spawn) /* null */; // To avoid compiler about unused function spawn (). + ACE_DEBUG ((LM_DEBUG, "SPIPE is not supported on this platform\n")); #endif /* defined (ACE_HAS_STREAM_PIPES) || defined (ACE_WIN32) || defined (VXWORKS) */ diff --git a/tests/UPIPE_SAP_Test.cpp b/tests/UPIPE_SAP_Test.cpp index 512985c322b..046cd800b66 100644 --- a/tests/UPIPE_SAP_Test.cpp +++ b/tests/UPIPE_SAP_Test.cpp @@ -23,7 +23,7 @@ #include "ace/Service_Config.h" #include "test_config.h" -#if defined (ACE_HAS_THREADS) +#if defined (ACE_HAS_THREADS) && (defined (ACE_HAS_STREAM_PIPES) || defined (ACE_WIN32)) // Global pattern static ACE_UPIPE_Addr addr (__TEXT ("pattern")); @@ -136,7 +136,7 @@ acceptor (void *args) ACE_DEBUG ((LM_DEBUG, "(%t) exiting thread\n")); return 0; } -#endif /* ACE_HAS_THREADS */ +#endif /* ACE_HAS_THREADS && defined ACE_HAS_STREAM_PIPES || ACE_WIN32 */ int main (int, char *[]) |