Fix clang -Wuninitialized warning.

dynamic.c:188:26: warning: variable 'i' is uninitialized when used here [-Wuninitialized]
         unsigned size = i;
                         ^
dynamic.c:187:20: note: initialize the variable 'i' to silence this warning
         unsigned i, j;
                   ^
                    = 0
1 warning generated.
This commit is contained in:
orbea 2018-12-16 16:28:34 -08:00
parent 4bc0aacd8b
commit 47666fb4a8

View File

@ -184,7 +184,8 @@ static bool environ_cb_get_system_info(unsigned cmd, void *data)
break;
case RETRO_ENVIRONMENT_SET_SUBSYSTEM_INFO:
{
unsigned i, j;
unsigned i = 0;
unsigned j = 0;
unsigned size = i;
const struct retro_subsystem_info *info =
(const struct retro_subsystem_info*)data;