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

Matteo Bruni matteo.mystral at gmail.com
Wed Nov 8 13:13:23 CST 2017


2017-11-08 10:33 GMT+01:00 Paul Gofman <gofmanp at gmail.com>:
>     There is actually no usage of uninitialized variable there, though it is
> probably not exactly straightforward for compiler to guess. Why it does not
> complain that 'cdesc[index]' may be used uninitialized while it is handled
> the same way? AFAIK GCC 8 is not released yet, maybe this will change before
> final release?
>
>     If still to change that, does the attached patch fixes the warning as
> well (sorry, I don't have gcc 8 in hands to test)? If yes, I would suggest
> that would be a tiny bit nicer way to silence the warning.

If that works it would be preferable to me too.



More information about the wine-devel mailing list