d3dx9_36: Silence an uninitialized compiler warning (GCC 8).

Gerald Pfeifer gerald at pfeifer.com
Mon Nov 6 16:22:44 CST 2017


There are more of this in d3dx9_36, but at least this is one down.

Gerald


Signed-off-by: Gerald Pfeifer <gerald at pfeifer.com>
---
 dlls/d3dx9_36/preshader.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/d3dx9_36/preshader.c b/dlls/d3dx9_36/preshader.c
index e3e91c643b..ed22dc4045 100644
--- a/dlls/d3dx9_36/preshader.c
+++ b/dlls/d3dx9_36/preshader.c
@@ -888,7 +888,7 @@ static HRESULT get_constants_desc(unsigned int *byte_code, struct d3dx_const_tab
     for (i = 0; i < desc.Constants; ++i)
     {
         unsigned int index = out->input_count;
-        WORD constantinfo_reserved;
+        WORD constantinfo_reserved = 0;
 
         hc = ID3DXConstantTable_GetConstant(ctab, NULL, i);
         if (!hc)
-- 
2.15.0



More information about the wine-patches mailing list