summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2014-07-13 06:20:45 +0200
committerPierre Bourdon <delroth@gmail.com>2014-07-13 06:20:45 +0200
commit12fa5ba8b4894375807eec4bc936050fade7b01b (patch)
tree5f72bfb51ee422cc6dfd4138ae213cf187be70a9 /Source/Core
parentb2fa0ea3dcbf388739b5290e750d738043597703 (diff)
parent0ccee6c87b78843caf4bb0dce48a46144e05f69e (diff)
Merge pull request #607 from Tilka/fix_warnings
Fix warnings unearthed by #579
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/AudioCommon/OpenALStream.cpp2
-rw-r--r--Source/Core/Common/Crypto/ec.cpp2
-rw-r--r--Source/Core/Common/Crypto/ec.h2
-rw-r--r--Source/Core/Core/Core.cpp5
-rw-r--r--Source/Core/Core/DSP/DSPAssembler.cpp7
-rw-r--r--Source/Core/Core/HLE/HLE_OS.cpp30
-rw-r--r--Source/Core/Core/HW/DSPLLE/DSPSymbols.cpp5
-rw-r--r--Source/Core/Core/HW/GPFifo.cpp5
-rw-r--r--Source/Core/Core/HW/SystemTimers.cpp5
-rw-r--r--Source/Core/Core/ec_wii.cpp21
-rw-r--r--Source/Core/Core/ec_wii.h2
-rw-r--r--Source/Core/Core/x64MemTools.cpp18
-rw-r--r--Source/Core/DolphinWX/GameListCtrl.cpp5
-rw-r--r--Source/Core/VideoBackends/OGL/Render.cpp2
-rw-r--r--Source/Core/VideoBackends/Software/SWmain.cpp5
-rw-r--r--Source/Core/VideoCommon/PixelEngine.cpp5
-rw-r--r--Source/Core/VideoCommon/TextureConversionShader.cpp24
-rw-r--r--Source/Core/VideoCommon/TextureDecoder_x64.cpp2
18 files changed, 6 insertions, 141 deletions
diff --git a/Source/Core/AudioCommon/OpenALStream.cpp b/Source/Core/AudioCommon/OpenALStream.cpp
index 1c1a802528..9daab19380 100644
--- a/Source/Core/AudioCommon/OpenALStream.cpp
+++ b/Source/Core/AudioCommon/OpenALStream.cpp
@@ -10,7 +10,7 @@
#if defined HAVE_OPENAL && HAVE_OPENAL
-soundtouch::SoundTouch soundTouch;
+static soundtouch::SoundTouch soundTouch;
//
// AyuanX: Spec says OpenAL1.1 is thread safe already
diff --git a/Source/Core/Common/Crypto/ec.cpp b/Source/Core/Common/Crypto/ec.cpp
index b324f1ec79..b75411b0d6 100644
--- a/Source/Core/Common/Crypto/ec.cpp
+++ b/Source/Core/Common/Crypto/ec.cpp
@@ -297,7 +297,7 @@ static void point_add(u8 *r, const u8 *p, const u8 *q)
elt_add(ry, s, rx);
}
-void point_mul(u8 *d, const u8 *a, const u8 *b) // a is bignum
+static void point_mul(u8 *d, const u8 *a, const u8 *b) // a is bignum
{
u32 i;
u8 mask;
diff --git a/Source/Core/Common/Crypto/ec.h b/Source/Core/Common/Crypto/ec.h
index 14329d41cc..efbc7e903b 100644
--- a/Source/Core/Common/Crypto/ec.h
+++ b/Source/Core/Common/Crypto/ec.h
@@ -6,8 +6,6 @@
#include "Common/CommonTypes.h"
-void point_mul(u8 *d, const u8 *a, const u8 *b);
-
void generate_ecdsa(u8 *R, u8 *S, const u8 *k, const u8 *hash);
void ec_priv_to_pub(const u8 *k, u8 *Q);
diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp
index f7221003dd..bd35c2c8d8 100644
--- a/Source/Core/Core/Core.cpp
+++ b/Source/Core/Core/Core.cpp
@@ -139,11 +139,6 @@ void DisplayMessage(const std::string& message, int time_in_ms)
}
}
-static void Callback_DebuggerBreak()
-{
- CCPU::Break();
-}
-
void *GetWindowHandle()
{
return g_pWindowHandle;
diff --git a/Source/Core/Core/DSP/DSPAssembler.cpp b/Source/Core/Core/DSP/DSPAssembler.cpp
index 522754f9d2..af68723be1 100644
--- a/Source/Core/Core/DSP/DSPAssembler.cpp
+++ b/Source/Core/Core/DSP/DSPAssembler.cpp
@@ -167,13 +167,6 @@ static char *skip_spaces(char *ptr)
return ptr;
}
-static const char *skip_spaces(const char *ptr)
-{
- while (*ptr == ' ')
- ptr++;
- return ptr;
-}
-
// Parse a standalone value - it can be a number in one of several formats or a label.
s32 DSPAssembler::ParseValue(const char *str)
{
diff --git a/Source/Core/Core/HLE/HLE_OS.cpp b/Source/Core/Core/HLE/HLE_OS.cpp
index 2f08e854f5..1338d96ca3 100644
--- a/Source/Core/Core/HLE/HLE_OS.cpp
+++ b/Source/Core/Core/HLE/HLE_OS.cpp
@@ -46,36 +46,6 @@ void HLE_GeneralDebugPrint()
NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, ReportMessage.c_str());
}
-static void HLE_VPrintf()
-{
- std::string ReportMessage;
- u32 r4 = GPR(4);
- u32 offset = Memory::Read_U32(r4+8);
- u32 check = Memory::Read_U32(r4);
- //NOTICE_LOG(OSREPORT, "Offset: %08X, Check %08X", offset, check);
- for (int i = 4; i<= 10; i++)
- {
- GPR(i) = Memory::Read_U32(offset+(i-(check == 0x01000000? 3 : 2))*4);
- //NOTICE_LOG(OSREPORT, "r%d: %08X",i, GPR(i));
- }
-
- GetStringVA(ReportMessage);
-
- NPC = LR;
-
- NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, ReportMessage.c_str());
-}
-// Generalized func for just printing string pointed to by r3.
-static void HLE_GeneralDebugPrintWithInt()
-{
- std::string ReportMessage;
- GetStringVA(ReportMessage, 5);
- NPC = LR;
-
- //PanicAlert("(%08x->%08x) %s", LR, PC, ReportMessage.c_str());
- NOTICE_LOG(OSREPORT, "%08x->%08x| %s", LR, PC, ReportMessage.c_str());
-}
-
// __write_console is slightly abnormal
void HLE_write_console()
{
diff --git a/Source/Core/Core/HW/DSPLLE/DSPSymbols.cpp b/Source/Core/Core/HW/DSPLLE/DSPSymbols.cpp
index d8356ba8f6..78b6b34879 100644
--- a/Source/Core/Core/HW/DSPLLE/DSPSymbols.cpp
+++ b/Source/Core/Core/HW/DSPLLE/DSPSymbols.cpp
@@ -75,11 +75,6 @@ Symbol *DSPSymbolDB::GetSymbolFromAddr(u32 addr)
return nullptr;
}
-static void DisassembleRange(u16 start, u16 end)
-{
- // TODO: ?
-}
-
bool ReadAnnotatedAssembly(const std::string& filename)
{
File::IOFile f(filename, "r");
diff --git a/Source/Core/Core/HW/GPFifo.cpp b/Source/Core/Core/HW/GPFifo.cpp
index ddbb2dcb7a..0b59007243 100644
--- a/Source/Core/Core/HW/GPFifo.cpp
+++ b/Source/Core/Core/HW/GPFifo.cpp
@@ -155,9 +155,4 @@ void FastWrite64(const u64 _iValue)
m_gatherPipeCount += 8;
}
-static void FastWriteEnd()
-{
- CheckGatherPipe();
-}
-
} // end of namespace GPFifo
diff --git a/Source/Core/Core/HW/SystemTimers.cpp b/Source/Core/Core/HW/SystemTimers.cpp
index 2099397be4..9832b92537 100644
--- a/Source/Core/Core/HW/SystemTimers.cpp
+++ b/Source/Core/Core/HW/SystemTimers.cpp
@@ -139,11 +139,6 @@ u32 GetTicksPerSecond()
return CPU_CORE_CLOCK;
}
-static u32 ConvertMillisecondsToTicks(u32 _Milliseconds)
-{
- return GetTicksPerSecond() / 1000 * _Milliseconds;
-}
-
// DSP/CPU timeslicing.
static void DSPCallback(u64 userdata, int cyclesLate)
{
diff --git a/Source/Core/Core/ec_wii.cpp b/Source/Core/Core/ec_wii.cpp
index c1204c9905..8b9f664ef0 100644
--- a/Source/Core/Core/ec_wii.cpp
+++ b/Source/Core/Core/ec_wii.cpp
@@ -116,27 +116,6 @@ void make_blanksig_ec_cert(u8 *cert_out, const char *signer, const char *name, c
ec_priv_to_pub(private_key, cert_out + 0x108);
}
-
-// get_shared_secret
-
-// shared_secret_out is a pointer to 0x3c long buffer
-// remote_public_key is a pointer to the remote party's public key (0x3c bytes)
-// NG_priv is the device-unique private key to use
-// if NG_priv is nullptr, default builtin will be used
-static void get_shared_secret(u8* shared_secret_out, u8* remote_public_key, u8* NG_priv)
-{
- if (NG_priv==nullptr)
- {
- NG_priv = default_NG_priv;
- }
-
- // required point_mul in Source/Core/Common/Crypto/ec.cpp
- // to be made non-static
-
- point_mul(shared_secret_out, NG_priv, remote_public_key);
-
-}
-
EcWii::EcWii()
{
bool init = true;
diff --git a/Source/Core/Core/ec_wii.h b/Source/Core/Core/ec_wii.h
index b99511432e..d80c776f6d 100644
--- a/Source/Core/Core/ec_wii.h
+++ b/Source/Core/Core/ec_wii.h
@@ -30,8 +30,6 @@ void get_ng_cert(u8* ng_cert_out, u32 NG_id, u32 NG_key_id, const u8* NG_priv, c
void get_ap_sig_and_cert(u8 *sig_out, u8 *ap_cert_out, u64 title_id, u8 *data, u32 data_size, const u8 *NG_priv, u32 NG_id);
void make_blanksig_ec_cert(u8 *cert_out, const char *signer, const char *name, const u8 *private_key, u32 key_id);
-void get_shared_secret(u8* shared_secret_out, u8* remote_public_key, const u8* NG_priv);
-
class EcWii
diff --git a/Source/Core/Core/x64MemTools.cpp b/Source/Core/Core/x64MemTools.cpp
index e132b15cf0..485b6728b2 100644
--- a/Source/Core/Core/x64MemTools.cpp
+++ b/Source/Core/Core/x64MemTools.cpp
@@ -23,24 +23,6 @@
namespace EMM
{
-#if (defined __APPLE__ || defined __linux__ || defined __FreeBSD__) && !defined(ANDROID)
-#include <execinfo.h>
-static void print_trace(const char * msg)
-{
- void *array[100];
- size_t size;
- char **strings;
- size_t i;
-
- size = backtrace(array, 100);
- strings = backtrace_symbols(array, size);
- printf("%s Obtained %u stack frames.\n", msg, (unsigned int)size);
- for (i = 0; i < size; i++)
- printf("--> %s\n", strings[i]);
- free(strings);
-}
-#endif
-
static bool DoFault(u64 bad_address, SContext *ctx)
{
if (!JitInterface::IsInCodeSpace((u8*) ctx->CTX_PC))
diff --git a/Source/Core/DolphinWX/GameListCtrl.cpp b/Source/Core/DolphinWX/GameListCtrl.cpp
index a517b3256a..92f3ff8062 100644
--- a/Source/Core/DolphinWX/GameListCtrl.cpp
+++ b/Source/Core/DolphinWX/GameListCtrl.cpp
@@ -181,11 +181,6 @@ static int CompareGameListItems(const GameListItem* iso1, const GameListItem* is
return 0;
}
-static bool operator < (const GameListItem &one, const GameListItem &other)
-{
- return CompareGameListItems(&one, &other) < 0;
-}
-
BEGIN_EVENT_TABLE(wxEmuStateTip, wxTipWindow)
EVT_KEY_DOWN(wxEmuStateTip::OnKeyDown)
END_EVENT_TABLE()
diff --git a/Source/Core/VideoBackends/OGL/Render.cpp b/Source/Core/VideoBackends/OGL/Render.cpp
index 2674c8a3ee..5fb486c6d9 100644
--- a/Source/Core/VideoBackends/OGL/Render.cpp
+++ b/Source/Core/VideoBackends/OGL/Render.cpp
@@ -163,6 +163,7 @@ static void ApplySSAASettings() {
}
}
+#if defined(_DEBUG) || defined(DEBUGFAST)
static void GLAPIENTRY ErrorCallback( GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const char* message, const void* userParam)
{
const char *s_source;
@@ -196,6 +197,7 @@ static void GLAPIENTRY ErrorCallback( GLenum source, GLenum type, GLuint id, GLe
default: ERROR_LOG(VIDEO, "id: %x, source: %s, type: %s - %s", id, s_source, s_type, message); break;
}
}
+#endif
// Two small Fallbacks to avoid GL_ARB_ES2_compatibility
static void GLAPIENTRY DepthRangef(GLfloat neardepth, GLfloat fardepth)
diff --git a/Source/Core/VideoBackends/Software/SWmain.cpp b/Source/Core/VideoBackends/Software/SWmain.cpp
index 13bd20d154..a947afaa6b 100644
--- a/Source/Core/VideoBackends/Software/SWmain.cpp
+++ b/Source/Core/VideoBackends/Software/SWmain.cpp
@@ -63,11 +63,6 @@ std::string VideoSoftware::GetName() const
return _trans("Software Renderer");
}
-static void *DllDebugger(void *_hParent, bool Show)
-{
- return nullptr;
-}
-
void VideoSoftware::ShowConfig(void *_hParent)
{
#if defined(HAVE_WX) && HAVE_WX
diff --git a/Source/Core/VideoCommon/PixelEngine.cpp b/Source/Core/VideoCommon/PixelEngine.cpp
index a66dd5ee98..5e049e3b18 100644
--- a/Source/Core/VideoCommon/PixelEngine.cpp
+++ b/Source/Core/VideoCommon/PixelEngine.cpp
@@ -252,11 +252,6 @@ void RegisterMMIO(MMIO::Mapping* mmio, u32 base)
}
}
-static bool AllowIdleSkipping()
-{
- return !SConfig::GetInstance().m_LocalCoreStartupParameter.bCPUThread || (!m_Control.PETokenEnable && !m_Control.PEFinishEnable);
-}
-
void UpdateInterrupts()
{
// check if there is a token-interrupt
diff --git a/Source/Core/VideoCommon/TextureConversionShader.cpp b/Source/Core/VideoCommon/TextureConversionShader.cpp
index 10b8114c8d..ad4dd6f1f6 100644
--- a/Source/Core/VideoCommon/TextureConversionShader.cpp
+++ b/Source/Core/VideoCommon/TextureConversionShader.cpp
@@ -349,30 +349,6 @@ static void WriteRGB5A3Encoder(char*& p,API_TYPE ApiType)
WriteEncoderEnd(p, ApiType);
}
-static void WriteRGBA4443Encoder(char*& p,API_TYPE ApiType)
-{
- WriteSwizzler(p, GX_TF_RGB5A3, ApiType);
-
- WRITE(p, " float4 texSample;\n");
- WRITE(p, " float4 color0;\n");
- WRITE(p, " float4 color1;\n");
-
- WriteSampleColor(p, "rgba", "texSample", 0, ApiType);
- WriteToBitDepth(p, 3, "texSample.a", "color0.b");
- WriteToBitDepth(p, 4, "texSample.r", "color1.b");
- WriteToBitDepth(p, 4, "texSample.g", "color0.g");
- WriteToBitDepth(p, 4, "texSample.b", "color1.g");
-
- WriteSampleColor(p, "rgba", "texSample", 1, ApiType);
- WriteToBitDepth(p, 3, "texSample.a", "color0.r");
- WriteToBitDepth(p, 4, "texSample.r", "color1.r");
- WriteToBitDepth(p, 4, "texSample.g", "color0.a");
- WriteToBitDepth(p, 4, "texSample.b", "color1.a");
-
- WRITE(p, " ocol0 = (color0 * 16.0 + color1) / 255.0;\n");
- WriteEncoderEnd(p, ApiType);
-}
-
static void WriteRGBA8Encoder(char*& p,API_TYPE ApiType)
{
WriteSwizzler(p, GX_TF_RGBA8, ApiType);
diff --git a/Source/Core/VideoCommon/TextureDecoder_x64.cpp b/Source/Core/VideoCommon/TextureDecoder_x64.cpp
index a0ec1bba05..245e5c6141 100644
--- a/Source/Core/VideoCommon/TextureDecoder_x64.cpp
+++ b/Source/Core/VideoCommon/TextureDecoder_x64.cpp
@@ -560,6 +560,7 @@ static void decodeDXTBlock(u32 *dst, const DXTBlock *src, int pitch)
}
}
+#ifdef CHECK
static void decodeDXTBlockRGBA(u32 *dst, const DXTBlock *src, int pitch)
{
// S3TC Decoder (Note: GCN decodes differently from PC so we can't use native support)
@@ -602,6 +603,7 @@ static void decodeDXTBlockRGBA(u32 *dst, const DXTBlock *src, int pitch)
dst += pitch;
}
}
+#endif
#if 0 // TODO - currently does not handle transparency correctly and causes problems when texture dimensions are not multiples of 8
static void copyDXTBlock(u8* dst, const u8* src)