changeset 3356:25dc3e6d910f draft

(svn r4151) -Fix: [PowerPC] removed an incorrect uninitialized var used warning in os_timer
author bjarni <bjarni@openttd.org>
date Wed, 29 Mar 2006 16:56:38 +0000
parents e8f5a792019b
children 52daa134fda0
files os_timer.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/os_timer.c
+++ b/os_timer.c
@@ -41,8 +41,7 @@
 #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