mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
Build warning fixes
This commit is contained in:
1 parent
7c1168726b
commit
2e0ca023ae
6 files changed
+11
-12
No files matched your search
@@ -791,12 +791,13 @@ static void DrawSockets(ImConfig &cfg) {
|
||||
}
|
||||
|
||||
static const char *MemCheckConditionToString(MemCheckCondition cond) {
|
||||
switch (cond) {
|
||||
case MEMCHECK_READ: return "Read";
|
||||
case MEMCHECK_WRITE: return "Write";
|
||||
case MEMCHECK_READWRITE: return "Read/Write";
|
||||
case MEMCHECK_WRITE | MEMCHECK_WRITE_ONCHANGE: return "Write Change";
|
||||
case MEMCHECK_READWRITE | MEMCHECK_WRITE_ONCHANGE: return "Read/Write Change";
|
||||
// (int) casting to avoid "case not in enum" warnings
|
||||
switch ((int)cond) {
|
||||
case (int)MEMCHECK_READ: return "Read";
|
||||
case (int)MEMCHECK_WRITE: return "Write";
|
||||
case (int)MEMCHECK_READWRITE: return "Read/Write";
|
||||
case (int)(MEMCHECK_WRITE | MEMCHECK_WRITE_ONCHANGE): return "Write Change";
|
||||
case (int)(MEMCHECK_READWRITE | MEMCHECK_WRITE_ONCHANGE): return "Read/Write Change";
|
||||
default:
|
||||
return "(bad!)";
|
||||
}
|
||||
@@ -1209,7 +1210,7 @@ void DrawMediaDecodersView(ImConfig &cfg, ImControl &control) {
|
||||
ImGui::Text("%d Hz, %d channels", ctx->SamplingRate, ctx->Channels);
|
||||
ImGui::Text("AUBuf: %08x AUSize: %08x", ctx->AuBuf, ctx->AuBufSize);
|
||||
ImGui::Text("PCMBuf: %08x PCMSize: %08x", ctx->PCMBuf, ctx->PCMBufSize);
|
||||
ImGui::Text("Pos: %d (%d -> %d)", ctx->ReadPos(), ctx->startPos, ctx->endPos);
|
||||
ImGui::Text("Pos: %d (%d -> %d)", ctx->ReadPos(), (int)ctx->startPos, (int)ctx->endPos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user