summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2021-04-28 20:08:17 +0200
committerBad Diode <bd@badd10de.dev>2021-04-28 20:08:17 +0200
commit430f41efe79e260c1bb44dfabd7a867104466db5 (patch)
tree0c5fbceb55d006e8f6f74449a9a9d6490ca5a7ce
parent3beb8ab1693b8ecd2b34047fde915137feb57e22 (diff)
downloadgba-experiments-430f41efe79e260c1bb44dfabd7a867104466db5.tar.gz
gba-experiments-430f41efe79e260c1bb44dfabd7a867104466db5.zip
Remove warnings
-rw-r--r--src/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h
index 7695683..ff5ea12 100644
--- a/src/common.h
+++ b/src/common.h
@@ -397,7 +397,7 @@ dma_copy(void *dst, const void *src, u32 size, int channel) {
397// Fill the dst location with the word set at src. 397// Fill the dst location with the word set at src.
398inline void 398inline void
399dma_fill(void *dst, const void *src, u32 size, int channel) { 399dma_fill(void *dst, const void *src, u32 size, int channel) {
400 dma_transfer_fill(dst, src, size / 4, channel, DMA_CHUNK_32 | DMA_ENABLE); 400 dma_transfer_fill(dst, (volatile u32)src, size / 4, channel, DMA_CHUNK_32 | DMA_ENABLE);
401} 401}
402 402
403// 403//