From 10425bfa0362ae2ecdb4914d2de8739a2fc6e269 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Thu, 21 Mar 2019 01:56:39 +0100 Subject: [PATCH] Fix LTO related compiler warnings --- arm9/source/system/bps.c | 18 +++++++++--------- arm9/source/system/ips.c | 8 ++++---- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arm9/source/system/bps.c b/arm9/source/system/bps.c index ff2f509..38cb9d8 100644 --- a/arm9/source/system/bps.c +++ b/arm9/source/system/bps.c @@ -65,18 +65,18 @@ typedef struct { DataChunk dataChunks[]; } BeatFile; -BeatFile *patch; -BeatFile *source; -BeatFile *target; +static BeatFile *patch; +static BeatFile *source; +static BeatFile *target; -bool bpmIsActive; -u32 bpsSize; -u32 bpsChecksum; +static bool bpmIsActive; +static u32 bpsSize; +static u32 bpsChecksum; -u64 timer; -u64 timerLastCheck; +static u64 timer; +static u64 timerLastCheck; -char progressText[256]; +static char progressText[256]; BeatFile* initFile(const char *path, u8 id, u64 targetSize) { u32 numChunks; diff --git a/arm9/source/system/ips.c b/arm9/source/system/ips.c index 347279b..13cc6c9 100644 --- a/arm9/source/system/ips.c +++ b/arm9/source/system/ips.c @@ -20,10 +20,10 @@ typedef enum { IPS_MEMORY } IPSERROR; -FIL patchFile, inFile, outFile; -size_t patchSize; -u8 *patch; -u32 patchOffset; +static FIL patchFile, inFile, outFile; +static size_t patchSize; +static u8 *patch; +static u32 patchOffset; char errName[256];