All: Fix some warnings
Jeffrey Pfau jeffrey@endrift.com
Fri, 29 Apr 2016 00:20:45 -0700
3 files changed,
6 insertions(+),
2 deletions(-)
M
src/arm/debugger.c
→
src/arm/debugger.c
@@ -55,7 +55,7 @@ static void ARMDebuggerCheckBreakpoints(struct mDebuggerPlatform*);
static bool ARMDebuggerHasBreakpoints(struct mDebuggerPlatform*); struct mDebuggerPlatform* ARMDebuggerPlatformCreate(void) { - struct mDebuggerPlatform* platform = malloc(sizeof(struct ARMDebugger)); + struct mDebuggerPlatform* platform = (struct mDebuggerPlatform*) malloc(sizeof(struct ARMDebugger)); platform->entered = ARMDebuggerEnter; platform->init = ARMDebuggerInit; platform->deinit = ARMDebuggerDeinit;
M
src/lr35902/debugger.c
→
src/lr35902/debugger.c
@@ -45,7 +45,7 @@ static void LR35902DebuggerCheckBreakpoints(struct mDebuggerPlatform*);
static bool LR35902DebuggerHasBreakpoints(struct mDebuggerPlatform*); struct mDebuggerPlatform* LR35902DebuggerPlatformCreate(void) { - struct mDebuggerPlatform* platform = malloc(sizeof(struct LR35902Debugger)); + struct mDebuggerPlatform* platform = (struct mDebuggerPlatform*) malloc(sizeof(struct LR35902Debugger)); platform->entered = LR35902DebuggerEnter; platform->init = LR35902DebuggerInit; platform->deinit = LR35902DebuggerDeinit;@@ -72,6 +72,8 @@ LR35902DebugWatchpointListDeinit(&debugger->watchpoints);
} static void LR35902DebuggerEnter(struct mDebuggerPlatform* platform, enum mDebuggerEntryReason reason, struct mDebuggerEntryInfo* info) { + UNUSED(reason); + UNUSED(info); struct LR35902Debugger* debugger = (struct LR35902Debugger*) platform; struct LR35902Core* cpu = debugger->cpu; cpu->nextEvent = cpu->cycles;
M
src/platform/commandline.c
→
src/platform/commandline.c
@@ -4,6 +4,8 @@ * This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "commandline.h" + +#include "core/config.h" #include "util/string.h" #include <fcntl.h>