From 3a804674c91bfa75a2a4f7da7f624af801be1eb8 Mon Sep 17 00:00:00 2001 From: Hyogi Sim Date: Mon, 31 Jan 2022 07:50:20 -0500 Subject: [PATCH] Fix linkage error on debug build with clang-13 Debug build with clang-13 fails with "undefined references" to the static const members in spu_channel class. This patch replaces the const definitions with constexpr constants. --- rpcs3/Emu/Cell/SPUThread.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rpcs3/Emu/Cell/SPUThread.h b/rpcs3/Emu/Cell/SPUThread.h index 60fb86f6a6..70df12a756 100644 --- a/rpcs3/Emu/Cell/SPUThread.h +++ b/rpcs3/Emu/Cell/SPUThread.h @@ -172,10 +172,10 @@ struct spu_channel atomic_t data; public: - static const u32 off_wait = 32; - static const u32 off_count = 63; - static const u64 bit_wait = 1ull << off_wait; - static const u64 bit_count = 1ull << off_count; + static constexpr u32 off_wait = 32; + static constexpr u32 off_count = 63; + static constexpr u64 bit_wait = 1ull << off_wait; + static constexpr u64 bit_count = 1ull << off_count; // Returns true on success bool try_push(u32 value)