From d25716935800d20b124b1e90a44639f321dfb733 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Sun, 17 Oct 2004 22:04:23 -0400 Subject: [PATCH] Clean up obsolete g++ 2.95 workaround. --HG-- extra : convert_revision : d8fe9415d855af57e48978904e8f6a52bb7a83cc --- sim/process.cc | 12 ++++-------- 1 file 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 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); } -- 2.30.2