Clean up obsolete g++ 2.95 workaround.
authorSteve Reinhardt <stever@eecs.umich.edu>
Mon, 18 Oct 2004 02:04:23 +0000 (22:04 -0400)
committerSteve Reinhardt <stever@eecs.umich.edu>
Mon, 18 Oct 2004 02:04:23 +0000 (22:04 -0400)
--HG--
extra : convert_revision : d8fe9415d855af57e48978904e8f6a52bb7a83cc

sim/process.cc

index b4febc75b64766ae76066a0dac327a5d96b96fdd..98db1f2e063a94836d0740182f68f6e9e1d8eafe 100644 (file)
@@ -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);
 }