mirror of https://github.com/mgba-emu/mgba.git
GBA: Fix a few warnings
This commit is contained in:
parent
9eb8faf1ba
commit
f5a7fa627e
|
@ -6,6 +6,7 @@
|
|||
#include "thread-proxy.h"
|
||||
|
||||
#include "gba/io.h"
|
||||
#include "gba/renderers/tile-cache.h"
|
||||
|
||||
#include "util/memory.h"
|
||||
|
||||
|
@ -125,7 +126,7 @@ void GBAVideoThreadProxyRendererDeinit(struct GBAVideoRenderer* renderer) {
|
|||
|
||||
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) {
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
#include "gba/gba.h"
|
||||
#include "gba/io.h"
|
||||
#include "gba/renderers/tile-cache.h"
|
||||
|
||||
#include "util/arm-algo.h"
|
||||
#include "util/memory.h"
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
* 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"
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
* 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"
|
||||
|
|
Loading…
Reference in New Issue