From bf866ff95b78c58e6e05a86b97d89f646c6b6900 Mon Sep 17 00:00:00 2001 From: oci Date: Fri, 19 Jan 2001 18:23:54 +0000 Subject: Changes to support Green Hills Native x86 compiler. --- ace/Process_Manager.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ace/Process_Manager.cpp') diff --git a/ace/Process_Manager.cpp b/ace/Process_Manager.cpp index cce3aa3f349..5d90e221e86 100644 --- a/ace/Process_Manager.cpp +++ b/ace/Process_Manager.cpp @@ -809,8 +809,15 @@ ACE_Process_Manager::wait (pid_t pid, pid = 0; else { + // Green Hills produces a warning that result >= WAIT_OBJECT_0 is + // a pointless comparison because WAIT_OBJECT_0 is zero and DWORD is + // unsigned long, so this test is skipped for Green Hills. +# if defined (ghs) + ACE_ASSERT (result < WAIT_OBJECT_0 + current_count_); +# else ACE_ASSERT (result >= WAIT_OBJECT_0 && result < WAIT_OBJECT_0 + current_count_); +# endif idx = this->find_proc (handles[result - WAIT_OBJECT_0]); -- cgit v1.2.1