all repos — mgba @ f0e99779d49a6fe6440ee7bd87558b42f62a2595

mGBA Game Boy Advance Emulator

All: Fix more warnings
Jeffrey Pfau jeffrey@endrift.com
Sat, 14 Feb 2015 23:47:08 -0800
commit

f0e99779d49a6fe6440ee7bd87558b42f62a2595

parent

2ec2e75634f04f7d54173db3fcdbd23d5ac7475f

2 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/debugger/memory-debugger.csrc/debugger/memory-debugger.c

@@ -40,7 +40,7 @@ #define CREATE_WATCHPOINT_SHIM(NAME, WIDTH, RETURN, TYPES, ARGS...) \

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 @@ base += offset; \

} \ 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); \ } \
M src/util/socket.hsrc/util/socket.h

@@ -186,7 +186,7 @@ fd_set eset;

FD_ZERO(&rset); FD_ZERO(&wset); FD_ZERO(&eset); - int i; + Socket i; Socket maxFd = 0; if (reads) { for (i = 0; i < nSockets; ++i) {