mirror of
https://github.com/libretro/mgba.git
synced 2024-11-24 08:30:30 +00:00
All: Fix some warnings
This commit is contained in:
parent
37a0839a25
commit
4b4be372c0
@ -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;
|
||||
|
@ -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 @@ void LR35902DebuggerDeinit(struct mDebuggerPlatform* platform) {
|
||||
}
|
||||
|
||||
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;
|
||||
|
@ -4,6 +4,8 @@
|
||||
* 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>
|
||||
|
Loading…
Reference in New Issue
Block a user