From: Steve Reinhardt Date: Mon, 18 Oct 2004 02:04:23 +0000 (-0400) Subject: Clean up obsolete g++ 2.95 workaround. X-Git-Tag: m5_1.0_tutorial~169 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d25716935800d20b124b1e90a44639f321dfb733;p=gem5.git Clean up obsolete g++ 2.95 workaround. --HG-- extra : convert_revision : d8fe9415d855af57e48978904e8f6a52bb7a83cc --- 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); }