From dc79755303b4ea7334322d77426378096d02667d Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 21 Sep 2014 19:51:27 -0400 Subject: [PATCH] Android: Silence a few warnings --- .../Core/Core/PowerPC/JitArm32/JitArm_BackPatch.cpp | 2 +- Source/Core/Core/PowerPC/JitArm32/JitArm_Integer.cpp | 12 ++++++------ Source/Core/DolphinWX/MainAndroid.cpp | 7 ++++--- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitArm32/JitArm_BackPatch.cpp b/Source/Core/Core/PowerPC/JitArm32/JitArm_BackPatch.cpp index ee0cf1ee76..b3c77cdab4 100644 --- a/Source/Core/Core/PowerPC/JitArm32/JitArm_BackPatch.cpp +++ b/Source/Core/Core/PowerPC/JitArm32/JitArm_BackPatch.cpp @@ -17,7 +17,7 @@ using namespace ArmGen; // 1) It's really necessary. We don't know anything about the context. // 2) It doesn't really hurt. Only instructions that access I/O will get these, and there won't be // that many of them in a typical program/game. -bool DisamLoadStore(const u32 inst, ARMReg &rD, u8 &accessSize, bool &Store) +static bool DisamLoadStore(const u32 inst, ARMReg &rD, u8 &accessSize, bool &Store) { u8 op = (inst >> 20) & 0xFF; rD = (ARMReg)((inst >> 12) & 0xF); diff --git a/Source/Core/Core/PowerPC/JitArm32/JitArm_Integer.cpp b/Source/Core/Core/PowerPC/JitArm32/JitArm_Integer.cpp index 98c5210c08..7767a7c1ee 100644 --- a/Source/Core/Core/PowerPC/JitArm32/JitArm_Integer.cpp +++ b/Source/Core/Core/PowerPC/JitArm32/JitArm_Integer.cpp @@ -168,32 +168,32 @@ void JitArm::subfic(UGeckoInstruction inst) // This instruction has no RC flag } -u32 Add(u32 a, u32 b) +static u32 Add(u32 a, u32 b) { return a + b; } -u32 Sub(u32 a, u32 b) +static u32 Sub(u32 a, u32 b) { return a - b; } -u32 Mul(u32 a, u32 b) +static u32 Mul(u32 a, u32 b) { return a * b; } -u32 Or (u32 a, u32 b) +static u32 Or (u32 a, u32 b) { return a | b; } -u32 And(u32 a, u32 b) +static u32 And(u32 a, u32 b) { return a & b; } -u32 Xor(u32 a, u32 b) +static u32 Xor(u32 a, u32 b) { return a ^ b; } diff --git a/Source/Core/DolphinWX/MainAndroid.cpp b/Source/Core/DolphinWX/MainAndroid.cpp index 0f2c5eddce..99c77c2017 100644 --- a/Source/Core/DolphinWX/MainAndroid.cpp +++ b/Source/Core/DolphinWX/MainAndroid.cpp @@ -133,7 +133,7 @@ static inline u32 GetPixel(u32 *buffer, unsigned int x, unsigned int y) { return buffer[y * 192 + x]; } -bool LoadBanner(std::string filename, u32 *Banner) +static bool LoadBanner(std::string filename, u32 *Banner) { DiscIO::IVolume* pVolume = DiscIO::CreateVolumeFromFilename(filename); @@ -188,7 +188,8 @@ bool LoadBanner(std::string filename, u32 *Banner) return false; } -std::string GetName(std::string filename) + +static std::string GetName(std::string filename) { if (!m_names.empty()) return m_names[0]; @@ -202,7 +203,7 @@ std::string GetName(std::string filename) return name; } -std::string GetJString(JNIEnv *env, jstring jstr) +static std::string GetJString(JNIEnv *env, jstring jstr) { std::string result = ""; if (!jstr)