mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-11 17:47:52 +00:00
[dynarmic] fix annoying gcc/clang error (#365)
caused qt creator to crash somehow geg Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/365 Reviewed-by: Lizzie <lizzie@eden-emu.dev> Reviewed-by: MaranBr <maranbr@outlook.com>
This commit is contained in:
parent
7ca197d900
commit
1c3ca17cfb
1 changed files with 20 additions and 0 deletions
|
@ -1,3 +1,6 @@
|
||||||
|
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||||
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
|
||||||
/* This file is part of the dynarmic project.
|
/* This file is part of the dynarmic project.
|
||||||
* Copyright (c) 2018 MerryMage
|
* Copyright (c) 2018 MerryMage
|
||||||
* SPDX-License-Identifier: 0BSD
|
* SPDX-License-Identifier: 0BSD
|
||||||
|
@ -19,6 +22,16 @@
|
||||||
|
|
||||||
namespace Dynarmic::Common {
|
namespace Dynarmic::Common {
|
||||||
|
|
||||||
|
// prevents this function from printing 56,000 character warning messages
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wno-stack-usage"
|
||||||
|
#endif
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wno-stack-usage"
|
||||||
|
#endif
|
||||||
|
|
||||||
template<typename Function, typename... Values>
|
template<typename Function, typename... Values>
|
||||||
inline auto GenerateLookupTableFromList(Function f, mcl::mp::list<Values...>) {
|
inline auto GenerateLookupTableFromList(Function f, mcl::mp::list<Values...>) {
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
|
@ -34,4 +47,11 @@ inline auto GenerateLookupTableFromList(Function f, mcl::mp::list<Values...>) {
|
||||||
return MapT(pair_array.begin(), pair_array.end());
|
return MapT(pair_array.begin(), pair_array.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __GNUC__
|
||||||
|
#pragma GCC diagnostic pop
|
||||||
|
#endif
|
||||||
|
#ifdef __clang__
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
} // namespace Dynarmic::Common
|
} // namespace Dynarmic::Common
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue