From a4450f0af9acb3fcdfd4b5eb306729ea42d787e3 Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Fri, 30 Nov 2007 18:03:56 +0000 Subject: [PATCH] d3dx8: Initialise temp in D3DXQuaternionInverse to avoid a uninitialised variable warning with some versions of gcc. --- dlls/d3dx8/math.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/d3dx8/math.c b/dlls/d3dx8/math.c index 55da2d955b5..18115b49088 100644 --- a/dlls/d3dx8/math.c +++ b/dlls/d3dx8/math.c @@ -695,6 +695,11 @@ D3DXQUATERNION* WINAPI D3DXQuaternionInverse(D3DXQUATERNION *pout, CONST D3DXQUA D3DXQUATERNION temp; FLOAT norm; + temp.x = 0.0f; + temp.y = 0.0f; + temp.z = 0.0f; + temp.w = 0.0f; + norm = D3DXQuaternionLengthSq(pq); if ( !norm ) { -- 2.11.4.GIT