d3dx9_36: Silence an uninitialized compiler warning (GCC 8).
Gerald Pfeifer <[email protected]> Mon, 6 Nov 2017 23:22:44 +0100 (CET)
| Newsgroups | gmane.comp.emulators.wine.patches |
|---|---|
| Message-ID | <[email protected]> |
There are more of this in d3dx9_36, but at least this is one down. Gerald Signed-off-by: Gerald Pfeifer <[email protected]> --- 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