From bd40430d2b710ba0a1618aefdc3436cba396e85b Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Fri, 28 Aug 2020 01:22:39 +0300 Subject: [PATCH] Fix some warnng in lv2.cpp --- rpcs3/Emu/Cell/lv2/sys_sync.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_sync.h b/rpcs3/Emu/Cell/lv2/sys_sync.h index 2903ac3cdd..b0f3f49848 100644 --- a/rpcs3/Emu/Cell/lv2/sys_sync.h +++ b/rpcs3/Emu/Cell/lv2/sys_sync.h @@ -23,6 +23,10 @@ enum lv2_protocol : u32 SYS_SYNC_PRIORITY = 0x2, // Priority Order SYS_SYNC_PRIORITY_INHERIT = 0x3, // Basic Priority Inheritance Protocol SYS_SYNC_RETRY = 0x4, // Not selected while unlocking +}; + +enum : u32 +{ SYS_SYNC_ATTR_PROTOCOL_MASK = 0xf, }; @@ -88,7 +92,7 @@ public: const auto ptr = reinterpret_cast(&name_u64); // NTS string, ignore invalid/newline characters - // Example: "lv2\n\0tx" will be printed as "lv2" + // Example: "lv2\n\0tx" will be printed as "lv2" std::string str{ptr, std::find(ptr, ptr + 7, '\0')}; str.erase(std::remove_if(str.begin(), str.end(), [](uchar c){ return !std::isprint(c); }), str.end());