Add/fix warning -Wignored-qualifiers (GCC/clang)

Fix simple_array::const_iterator as a part of it.
This commit is contained in:
Nekotekina 2021-03-07 18:49:42 +03:00
parent 5bdd1cf837
commit 53af2dbb3f
11 changed files with 25 additions and 23 deletions

View file

@ -97,7 +97,7 @@ DECLARE(spu_runtime::tr_interpreter) = []
DECLARE(spu_runtime::g_dispatcher) = []
{
// Allocate 2^20 positions in data area
const auto ptr = reinterpret_cast<decltype(g_dispatcher)>(jit_runtime::alloc(sizeof(*g_dispatcher), 64, false));
const auto ptr = reinterpret_cast<std::remove_const_t<decltype(spu_runtime::g_dispatcher)>>(jit_runtime::alloc(sizeof(*g_dispatcher), 64, false));
for (auto& x : *ptr)
{