mirror of
https://github.com/citra-emu/citra.git
synced 2024-11-25 06:30:14 +00:00
gdbstub: store register indexes in an enum rather than const u32.
This fixes a tautological-compare warning in src/core/gdbstub/gdbstub.cpp line 472 because `R0_REGISTER` is 0 and `id` is unsigned.
This commit is contained in:
parent
e3905cdfd8
commit
b77042a920
@ -55,10 +55,12 @@ const u32 SIGTERM = 15;
|
||||
const u32 MSG_WAITALL = 8;
|
||||
#endif
|
||||
|
||||
const u32 R0_REGISTER = 0;
|
||||
const u32 R15_REGISTER = 15;
|
||||
const u32 CPSR_REGISTER = 25;
|
||||
const u32 FPSCR_REGISTER = 58;
|
||||
enum GDBRegister {
|
||||
R0_REGISTER = 0,
|
||||
R15_REGISTER = 15,
|
||||
CPSR_REGISTER = 25,
|
||||
FPSCR_REGISTER = 58
|
||||
};
|
||||
|
||||
namespace GDBStub {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user