summaryrefslogtreecommitdiff
path: root/examples/Threads
diff options
context:
space:
mode:
Diffstat (limited to 'examples/Threads')
-rw-r--r--examples/Threads/barrier2.cpp2
-rw-r--r--examples/Threads/process_manager.cpp2
-rw-r--r--examples/Threads/task_three.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/Threads/barrier2.cpp b/examples/Threads/barrier2.cpp
index bc1d1df1648..00d7229856c 100644
--- a/examples/Threads/barrier2.cpp
+++ b/examples/Threads/barrier2.cpp
@@ -179,7 +179,7 @@ Worker_Task<BARRIER>::Producer (void)
return -1;
}
- return 0;
+ ACE_NOTREACHED(return 0);
}
template <class BARRIER>int
diff --git a/examples/Threads/process_manager.cpp b/examples/Threads/process_manager.cpp
index 99f6677f4f6..9b7a489d5cb 100644
--- a/examples/Threads/process_manager.cpp
+++ b/examples/Threads/process_manager.cpp
@@ -58,7 +58,7 @@ sig_handler (void *)
}
}
- break;
+ /* NOTREACHED */
case -1:
ACE_ERROR_RETURN ((LM_ERROR, "%p\n", "sigwait"), 0);
/* NOTREACHED */
diff --git a/examples/Threads/task_three.cpp b/examples/Threads/task_three.cpp
index 66ac7b141ee..285921b2aea 100644
--- a/examples/Threads/task_three.cpp
+++ b/examples/Threads/task_three.cpp
@@ -151,7 +151,7 @@ dispatch (void *arg)
ACE_DEBUG ((LM_DEBUG, "Dispatch: handle_events (): %d", result));
}
- return 0;
+ ACE_NOTREACHED(return 0);
}
extern "C" void