all repos — mgba @ f5a7fa627eb238052007d63b1eb061a6b6bc2075

mGBA Game Boy Advance Emulator

GBA: Fix a few warnings
Jeffrey Pfau jeffrey@endrift.com
Wed, 17 Aug 2016 00:53:54 -0700
commit

f5a7fa627eb238052007d63b1eb061a6b6bc2075

parent

9eb8faf1bab99e69e7c62fb8d7daa85a5cc07adf

M src/gba/renderers/thread-proxy.csrc/gba/renderers/thread-proxy.c

@@ -6,6 +6,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "thread-proxy.h" #include "gba/io.h" +#include "gba/renderers/tile-cache.h" #include "util/memory.h"

@@ -125,7 +126,7 @@ }

static bool _writeData(struct GBAVideoThreadProxyRenderer* proxyRenderer, void* data, size_t length) { while (!RingFIFOWrite(&proxyRenderer->dirtyQueue, data, length)) { - mLOG(GBA_VIDEO, WARN, "Can't write 0x%z bytes. Proxy thread asleep?", length); + mLOG(GBA_VIDEO, WARN, "Can't write 0x%zu bytes. Proxy thread asleep?", length); mLOG(GBA_VIDEO, DEBUG, "Queue status: read: %p, write: %p", proxyRenderer->dirtyQueue.readPtr, proxyRenderer->dirtyQueue.writePtr); MutexLock(&proxyRenderer->mutex); if (proxyRenderer->threadState == PROXY_THREAD_STOPPED) {
M src/gba/renderers/video-software.csrc/gba/renderers/video-software.c

@@ -7,6 +7,7 @@ #include "software-private.h"

#include "gba/gba.h" #include "gba/io.h" +#include "gba/renderers/tile-cache.h" #include "util/arm-algo.h" #include "util/memory.h"
M src/platform/test/fuzz-main.csrc/platform/test/fuzz-main.c

@@ -5,6 +5,7 @@ * 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 "core/config.h" #include "core/core.h" +#include "core/serialize.h" #include "gba/core.h" #include "gba/gba.h" #include "gba/serialize.h"
M src/platform/test/perf-main.csrc/platform/test/perf-main.c

@@ -4,10 +4,10 @@ * 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 "core/config.h" +#include "core/serialize.h" #include "gba/core.h" #include "gba/gba.h" #include "gba/renderers/video-software.h" -#include "gba/serialize.h" #include "feature/commandline.h" #include "util/socket.h"