mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01:00
Work around false SLOTS defined but not used warning on GCC
See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80351
This commit is contained in:
parent
7c91acb000
commit
edec1d5e3a
@ -37,10 +37,12 @@ enum class Slot : int
|
|||||||
B,
|
B,
|
||||||
SP1,
|
SP1,
|
||||||
};
|
};
|
||||||
static constexpr auto SLOTS = {Slot::A, Slot::B, Slot::SP1};
|
// Note: using auto here results in a false warning on GCC
|
||||||
static constexpr auto MAX_SLOT = Slot::SP1;
|
// See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80351
|
||||||
static constexpr auto MEMCARD_SLOTS = {Slot::A, Slot::B};
|
constexpr std::initializer_list<Slot> SLOTS = {Slot::A, Slot::B, Slot::SP1};
|
||||||
static constexpr auto MAX_MEMCARD_SLOT = Slot::B;
|
constexpr auto MAX_SLOT = Slot::SP1;
|
||||||
|
constexpr std::initializer_list<Slot> MEMCARD_SLOTS = {Slot::A, Slot::B};
|
||||||
|
constexpr auto MAX_MEMCARD_SLOT = Slot::B;
|
||||||
constexpr bool IsMemcardSlot(Slot slot)
|
constexpr bool IsMemcardSlot(Slot slot)
|
||||||
{
|
{
|
||||||
return slot == Slot::A || slot == Slot::B;
|
return slot == Slot::A || slot == Slot::B;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user