summaryrefslogtreecommitdiff
path: root/os_timer.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-03-29 16:56:38 +0000
committerbjarni <bjarni@openttd.org>2006-03-29 16:56:38 +0000
commite00beaf9b5a75d9f47d6d653f8843de13497570a (patch)
tree82e7871dd729a256f622b3a03f340c8a1bfaafac /os_timer.c
parenta7d8ad0004e00e1d917d636f4d69fd58f5edbfa3 (diff)
downloadopenttd-e00beaf9b5a75d9f47d6d653f8843de13497570a.tar.xz
(svn r4151) -Fix: [PowerPC] removed an incorrect uninitialized var used warning in os_timer
Diffstat (limited to 'os_timer.c')
-rw-r--r--os_timer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/os_timer.c b/os_timer.c
index 89c25d010..210a43ab7 100644
--- a/os_timer.c
+++ b/os_timer.c
@@ -41,8 +41,7 @@ uint64 _rdtsc(void)
#if defined(__POWERPC__) && !defined(RDTSC_AVAILABLE)
uint64 _rdtsc(void)
{
- uint32 high, low;
- uint32 high2 = 0;
+ uint32 high = 0, high2 = 0, low;
/* PPC does not have rdtsc, so we cheat by reading the two 32-bit time-counters
* it has, 'Move From Time Base (Upper)'. Since these are two reads, in the
* very unlikely event that the lower part overflows to the upper part while we