summaryrefslogtreecommitdiff
path: root/sim/process.cc
diff options
context:
space:
mode:
authorSteve Reinhardt <stever@eecs.umich.edu>2004-10-17 22:04:23 -0400
committerSteve Reinhardt <stever@eecs.umich.edu>2004-10-17 22:04:23 -0400
commitd25716935800d20b124b1e90a44639f321dfb733 (patch)
tree6d8b50641b313c9d84851deb89bc0c6f90e77e43 /sim/process.cc
parentfcbfd5a99d05b4e555fcd36b823a37c1c7f94353 (diff)
downloadgem5-d25716935800d20b124b1e90a44639f321dfb733.tar.xz
Clean up obsolete g++ 2.95 workaround.
--HG-- extra : convert_revision : d8fe9415d855af57e48978904e8f6a52bb7a83cc
Diffstat (limited to 'sim/process.cc')
-rw-r--r--sim/process.cc12
1 files changed, 4 insertions, 8 deletions
diff --git a/sim/process.cc b/sim/process.cc
index b4febc75b..98db1f2e0 100644
--- a/sim/process.cc
+++ b/sim/process.cc
@@ -392,14 +392,10 @@ CREATE_SIM_OBJECT(LiveProcess)
// dummy for default env
vector<string> null_vec;
- // We do this with "temp" because of the bogus compiler warning
- // you get with g++ 2.95 -O if you just "return new LiveProcess(..."
- LiveProcess *temp = LiveProcess::create(getInstanceName(),
- stdin_fd, stdout_fd, stderr_fd,
- cmd,
- env.isValid() ? env : null_vec);
-
- return temp;
+ return LiveProcess::create(getInstanceName(),
+ stdin_fd, stdout_fd, stderr_fd,
+ cmd,
+ env.isValid() ? env : null_vec);
}