diff --git a/Utilities/StrFmt.h b/Utilities/StrFmt.h index a812ccaa74..d4e46917eb 100644 --- a/Utilities/StrFmt.h +++ b/Utilities/StrFmt.h @@ -84,7 +84,10 @@ namespace fmt{ for (;;) { std::vector buffptr(length); +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wformat-security" int printlen = snprintf(buffptr.data(), length, fmt.c_str(), std::forward(parameters)...); +#pragma clang diagnostic pop if (printlen >= 0 && printlen < length) { str = string(buffptr.data(), printlen); diff --git a/rpcs3/Gui/InterpreterDisAsm.cpp b/rpcs3/Gui/InterpreterDisAsm.cpp index 6dffef62cf..c208d303ce 100644 --- a/rpcs3/Gui/InterpreterDisAsm.cpp +++ b/rpcs3/Gui/InterpreterDisAsm.cpp @@ -455,7 +455,7 @@ void InterpreterDisAsmFrame::Show_Val(wxCommandEvent& WXUNUSED(event)) if(diag->ShowModal() == wxID_OK) { - u64 pc = CPU ? CPU->PC : 0x0; + unsigned long pc = CPU ? CPU->PC : 0x0; p_pc->GetValue().ToULong(&pc, 16); Emu.GetMarkedPoints().push_back(pc); remove_markedPC.push_back(Emu.GetMarkedPoints().size()-1);