From ba727e13aecb78433183f959846340d774f2dd49 Mon Sep 17 00:00:00 2001 From: RipleyTom Date: Thu, 11 Nov 2021 05:06:47 +0100 Subject: [PATCH] Fixes rpcn_client.h func ptr comparison warning --- rpcs3/Emu/NP/rpcn_client.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/NP/rpcn_client.h b/rpcs3/Emu/NP/rpcn_client.h index 9c3ed793d4..992ee92f2b 100644 --- a/rpcs3/Emu/NP/rpcn_client.h +++ b/rpcs3/Emu/NP/rpcn_client.h @@ -402,7 +402,9 @@ namespace rpcn bool operator<(const message_cb_t& other) const { - return (cb_func < other.cb_func) || ((!(other.cb_func < cb_func)) && (cb_param < other.cb_param)); + const void* void_cb_func = reinterpret_cast(cb_func); + const void* void_other_cb_func = reinterpret_cast(other.cb_func); + return (void_cb_func < void_other_cb_func) || ((!(void_other_cb_func < void_cb_func)) && (cb_param < other.cb_param)); } }; shared_mutex mutex_messages;