mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-13 22:40:29 +02:00
fix compiler warnings
This commit is contained in:
1 parent
b10f5f842a
commit
de3abcf579
4 files changed
+5
-5
No files matched your search
@@ -315,7 +315,7 @@ void ConsoleListener::SendToThread(LogLevel Level, const char *Text) {
|
||||
int ColorLen = 0;
|
||||
if (useColor_) {
|
||||
// Not ANSI, since the console doesn't support it, but ANSI-like.
|
||||
snprintf(ColorAttr, 16, "\033%d", Level);
|
||||
snprintf(ColorAttr, 16, "\033%d", (int)Level);
|
||||
// For now, rather than properly support it.
|
||||
_dbg_assert_msg_(strlen(ColorAttr) == 2, "Console logging doesn't support > 9 levels.");
|
||||
ColorLen = (int)strlen(ColorAttr);
|
||||
|
||||
@@ -2330,7 +2330,7 @@ void __KernelReturnFromModuleFunc() {
|
||||
INFO_LOG(Log::sceModule, "Resuming LoadExec thread 0x%x", module->pluginWaitingThread);
|
||||
__KernelResumeThreadFromWait(module->pluginWaitingThread, 0);
|
||||
} else {
|
||||
INFO_LOG(Log::sceModule, "LoadExec thread 0x%x still waiting for %ld plugin(s)", module->pluginWaitingThread, plugin_waiting_module->startingPlugins.size());
|
||||
INFO_LOG(Log::sceModule, "LoadExec thread 0x%x still waiting for %lld plugin(s)", module->pluginWaitingThread, plugin_waiting_module->startingPlugins.size());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -218,14 +218,14 @@ bool WASAPIContext::InitOutputDevice(std::string_view uniqueId, LatencyMode late
|
||||
} else if (result == S_FALSE) {
|
||||
// We got another format. Meh, let's just use what we got.
|
||||
if (closestMatch) {
|
||||
WARN_LOG(Log::Audio, "Didn't get the format we wanted, but got: %d ch=%d", closestMatch->nSamplesPerSec, closestMatch->nChannels);
|
||||
WARN_LOG(Log::Audio, "Didn't get the format we wanted, but got: %lu ch=%d", closestMatch->nSamplesPerSec, closestMatch->nChannels);
|
||||
CoTaskMemFree(closestMatch);
|
||||
} else {
|
||||
WARN_LOG(Log::Audio, "Failed to fall back to two channels. Using workarounds.");
|
||||
}
|
||||
createBuffer = true;
|
||||
} else {
|
||||
WARN_LOG(Log::Audio, "Got other error %08x", result);
|
||||
WARN_LOG(Log::Audio, "Got other error %08lx", result);
|
||||
_dbg_assert_(!closestMatch);
|
||||
}
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -538,9 +538,9 @@ void System_Notify(SystemNotification notification) {
|
||||
case SystemNotification::SUSTAINED_PERF_CHANGE:
|
||||
case SystemNotification::ROTATE_UPDATED:
|
||||
case SystemNotification::TEST_JAVA_EXCEPTION:
|
||||
break;
|
||||
case SystemNotification::AUDIO_MODE_CHANGED:
|
||||
case SystemNotification::APP_SWITCH_MODE_CHANGED:
|
||||
case SystemNotification::UI_STATE_CHANGED:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user