Revert "threads.c:6403:6: warning: 'current_idx' may be used uninitialized in this...
authorJay Krell <jaykrell@microsoft.com>
Fri, 14 Jun 2019 04:38:43 +0000 (21:38 -0700)
committerLarry Ewing <lewing@microsoft.com>
Tue, 18 Jun 2019 02:53:08 +0000 (21:53 -0500)
commit5b897075059b7c41ab39e64408ff011517883a59
tree5453a076b82a1ccc1680ab1a3225cf68e4763d83
parent2067cd4cd56a0bcda078a9dff897efd6b7d2fda5
Revert "threads.c:6403:6: warning: 'current_idx' may be used uninitialized in this function [-Wmaybe-uninitialized]"

This reverts commit mono/mono@bf2f1abe01978102c22d76b4a10996e8d8b50b0f.

The logic is not clear as to if there is a bug, so leave the warning.
There are two uses of the possibly uninitialized variable.
One is guarded and not a bug.
The other is not clear, and don't want to blindly use 0.

Commit migrated from https://github.com/mono/mono/commit/a97408ac1e9b1e0dedbd67424ca0b0a6fc7b73b6
src/mono/mono/metadata/threads.c