summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-14 02:43:45 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-14 02:43:45 +0000
commitaefc49e46dae950b788748e2e6c49559e9a2ded8 (patch)
treef06e41ceb79f230a05ae679326fbb2ebf8ebb077 /examples
parent5b727b8fa8a8cfeb8c2f98f0a01a2e633058419b (diff)
downloadATCD-aefc49e46dae950b788748e2e6c49559e9a2ded8.tar.gz
(main): avoid compiler warning due to implicit creation of temporary by explicitly creating an ACE_Process_Options instance. It gets passed to ACE_Process_Manager::spawn (ACE_Process_Options &), which takes a non-const reference.
Diffstat (limited to 'examples')
-rw-r--r--examples/Threads/process_manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/Threads/process_manager.cpp b/examples/Threads/process_manager.cpp
index b8499b8056a..b90ff9faa11 100644
--- a/examples/Threads/process_manager.cpp
+++ b/examples/Threads/process_manager.cpp
@@ -109,7 +109,8 @@ main (int argc, char *argv[])
ACE_UNUSED_ARG (n_processes);
int n_iterations = argc > 2 ? ACE_OS::atoi (argv[2]) : DEFAULT_ITERATIONS;
- pid_t pid = proc_mgr.start (0);
+ ACE_Process_Options options (0);
+ pid_t pid = proc_mgr.start (options);
switch (pid)
{