mirror of https://github.com/mgba-emu/mgba.git
All: Fix more warnings
This commit is contained in:
parent
2ec2e75634
commit
f0e99779d4
|
@ -40,7 +40,7 @@ static uint32_t _popcount32(unsigned bits) {
|
|||
static RETURN ARMDebuggerShim_ ## NAME TYPES { \
|
||||
struct ARMDebugger* debugger; \
|
||||
FIND_DEBUGGER(debugger, cpu); \
|
||||
struct DebuggerEntryInfo info = { }; \
|
||||
struct DebuggerEntryInfo info; \
|
||||
if (_checkWatchpoints(debugger, address, &info, WIDTH)) { \
|
||||
ARMDebuggerEnter(debugger, DEBUGGER_ENTER_WATCHPOINT, &info); \
|
||||
} \
|
||||
|
@ -63,7 +63,7 @@ static uint32_t _popcount32(unsigned bits) {
|
|||
} \
|
||||
unsigned i; \
|
||||
for (i = 0; i < popcount; ++i) { \
|
||||
struct DebuggerEntryInfo info = { }; \
|
||||
struct DebuggerEntryInfo info; \
|
||||
if (_checkWatchpoints(debugger, base + 4 * i, &info, 4)) { \
|
||||
ARMDebuggerEnter(debugger, DEBUGGER_ENTER_WATCHPOINT, &info); \
|
||||
} \
|
||||
|
|
|
@ -186,7 +186,7 @@ static inline int SocketPoll(int nSockets, Socket* reads, Socket* writes, Socket
|
|||
FD_ZERO(&rset);
|
||||
FD_ZERO(&wset);
|
||||
FD_ZERO(&eset);
|
||||
int i;
|
||||
Socket i;
|
||||
Socket maxFd = 0;
|
||||
if (reads) {
|
||||
for (i = 0; i < nSockets; ++i) {
|
||||
|
|
Loading…
Reference in New Issue