From bbe5ac1458f3719fd51785f086e9166ccbb0c464 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 5 Feb 2003 21:44:28 +0000 Subject: [PATCH] Squelch warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5494 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Timer.cpp | 2 +- support/lib/Support/Timer.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp index 8023c500e5d..3a81fc4b53f 100644 --- a/lib/Support/Timer.cpp +++ b/lib/Support/Timer.cpp @@ -89,7 +89,7 @@ struct TimeRecord { static TimeRecord getTimeRecord(bool Start) { struct rusage RU; struct timeval T; - long MemUsed; + long MemUsed = 0; if (Start) { MemUsed = getMemUsage(); if (getrusage(RUSAGE_SELF, &RU)) diff --git a/support/lib/Support/Timer.cpp b/support/lib/Support/Timer.cpp index 8023c500e5d..3a81fc4b53f 100644 --- a/support/lib/Support/Timer.cpp +++ b/support/lib/Support/Timer.cpp @@ -89,7 +89,7 @@ struct TimeRecord { static TimeRecord getTimeRecord(bool Start) { struct rusage RU; struct timeval T; - long MemUsed; + long MemUsed = 0; if (Start) { MemUsed = getMemUsage(); if (getrusage(RUSAGE_SELF, &RU)) -- 2.34.1