Permalink
Browse files

Global: Silence some unused declaration warnings.

These things aren't used on Android.
  • Loading branch information...
unknownbrackets committed Dec 4, 2017
1 parent 20c9d0e commit 715a7b7318c223b480fbbe653d57c91380106eba
@@ -529,6 +529,7 @@ namespace SaveState
return false;
}
#ifndef MOBILE_DEVICE
static inline void CheckRewindState()
{
if (gpuStats.numFlips % g_Config.iRewindFlipFrequency != 0)
@@ -544,6 +545,7 @@ namespace SaveState
DEBUG_LOG(BOOT, "saving rewind state");
rewindStates.Save();
}
#endif
bool HasLoadedState()
{
@@ -45,6 +45,7 @@
extern void init_resources(TBuiltInResource &Resources);
#if !defined(ANDROID)
static EShLanguage GetLanguage(const Draw::ShaderStage stage) {
switch (stage) {
case Draw::ShaderStage::VERTEX: return EShLangVertex;
@@ -56,6 +57,7 @@ static EShLanguage GetLanguage(const Draw::ShaderStage stage) {
default: return EShLangVertex;
}
}
#endif
void ShaderTranslationInit() {
// TODO: We have TLS issues on UWP
@@ -151,6 +151,7 @@ u32 QuickTexHashNonSSE(const void *checkp, u32 size) {
return check;
}
#if !PPSSPP_ARCH(ARM64) && !defined(_M_SSE)
static u32 QuickTexHashBasic(const void *checkp, u32 size) {
#if PPSSPP_ARCH(ARM) && defined(__GNUC__)
__builtin_prefetch(checkp, 0, 0);
@@ -196,6 +197,7 @@ static u32 QuickTexHashBasic(const void *checkp, u32 size) {
return check;
}
#endif
void DoSwizzleTex16(const u32 *ysrcp, u8 *texptr, int bxc, int byc, u32 pitch) {
// ysrcp is in 32-bits, so this is convenient.
@@ -302,15 +304,13 @@ void DoUnswizzleTex16Basic(const u8 *texptr, u32 *ydestp, int bxc, int byc, u32
}
}
#ifndef _M_SSE
#if !PPSSPP_ARCH(ARM64)
#if !PPSSPP_ARCH(ARM64) && !defined(_M_SSE)
QuickTexHashFunc DoQuickTexHash = &QuickTexHashBasic;
QuickTexHashFunc StableQuickTexHash = &QuickTexHashNonSSE;
UnswizzleTex16Func DoUnswizzleTex16 = &DoUnswizzleTex16Basic;
ReliableHash32Func DoReliableHash32 = &XXH32;
ReliableHash64Func DoReliableHash64 = &XXH64;
#endif
#endif
// This has to be done after CPUDetect has done its magic.
void SetupTextureDecoder() {
@@ -107,7 +107,9 @@ class GPU_GLES : public GPUCommon {
FragmentTestCacheGLES fragmentTestCache_;
ShaderManagerGLES *shaderManagerGL_;
#ifdef _WIN32
int lastVsync_;
#endif
int vertexCost_ = 0;
std::string reportingPrimaryInfo_;
@@ -204,8 +204,7 @@ void TextDrawerAndroid::DrawString(DrawBuffer &target, const char *str, float x,
uint16_t *bitmapData = new uint16_t[entry->bmWidth * entry->bmHeight];
jint* jimage = env_->GetIntArrayElements(imageData, nullptr);
int arraySize = env_->GetArrayLength(imageData);
assert(arraySize == imageWidth * imageHeight);
assert(env_->GetArrayLength(imageData) == imageWidth * imageHeight);
for (int x = 0; x < entry->bmWidth; x++) {
for (int y = 0; y < entry->bmHeight; y++) {
uint32_t v = jimage[imageWidth * y + x];
@@ -1311,7 +1311,6 @@ EventReturn ListView::OnItemCallback(int num, EventParams &e) {
ev.v = nullptr;
ev.a = num;
adaptor_->SetSelected(num);
View *focused = GetFocusedView();
OnChoice.Trigger(ev);
CreateAllItems();
return EVENT_DONE;

0 comments on commit 715a7b7

Please sign in to comment.