diff --git a/rpcs3/Emu/RSX/Program/ProgramStateCache.h b/rpcs3/Emu/RSX/Program/ProgramStateCache.h index 6c8ff3f1c3..17857b80ad 100644 --- a/rpcs3/Emu/RSX/Program/ProgramStateCache.h +++ b/rpcs3/Emu/RSX/Program/ProgramStateCache.h @@ -256,13 +256,13 @@ public: program_buffer_patch_entry() = default; - program_buffer_patch_entry(f32& key, f32& value) + program_buffer_patch_entry(f32 key, f32 value) { fp_key = key; fp_value = value; } - program_buffer_patch_entry(u32& key, u32& value) + program_buffer_patch_entry(u32 key, u32 value) { hex_key = key; hex_value = value; diff --git a/rpcs3/Emu/RSX/color_utils.h b/rpcs3/Emu/RSX/color_utils.h index 55e9e483fd..fd3156bd3e 100644 --- a/rpcs3/Emu/RSX/color_utils.h +++ b/rpcs3/Emu/RSX/color_utils.h @@ -110,14 +110,14 @@ namespace rsx return result; } - static inline void get_g8b8_r8g8_colormask(bool& red, bool&/*green*/, bool& blue, bool& alpha) + static inline void get_g8b8_r8g8_colormask(bool& red, bool/*green*/, bool& blue, bool& alpha) { red = blue; blue = false; alpha = false; } - static inline void get_g8b8_clear_color(u8& red, u8& /*green*/, u8& blue, u8& /*alpha*/) + static inline void get_g8b8_clear_color(u8& red, u8 /*green*/, u8 blue, u8 /*alpha*/) { red = blue; } @@ -132,12 +132,12 @@ namespace rsx return result; } - static inline void get_abgr8_colormask(bool& red, bool& /*green*/, bool& blue, bool& /*alpha*/) + static inline void get_abgr8_colormask(bool& red, bool /*green*/, bool& blue, bool /*alpha*/) { std::swap(red, blue); } - static inline void get_abgr8_clear_color(u8& red, u8& /*green*/, u8& blue, u8& /*alpha*/) + static inline void get_abgr8_clear_color(u8& red, u8 /*green*/, u8& blue, u8 /*alpha*/) { std::swap(red, blue); } @@ -151,7 +151,7 @@ namespace rsx return static_cast((value * 255) / base); } - static inline void get_rgb565_clear_color(u8& red, u8& green, u8& blue, u8& /*alpha*/) + static inline void get_rgb565_clear_color(u8& red, u8& green, u8& blue, u8 /*alpha*/) { // RSX clear color is just a memcpy, so in this case the input is ARGB8 so only BG have the 16-bit input const u16 raw_value = static_cast(green) << 8 | blue; @@ -189,7 +189,7 @@ namespace rsx alpha = false; } - static inline void get_b8_clear_color(u8& red, u8& /*green*/, u8& blue, u8& /*alpha*/) + static inline void get_b8_clear_color(u8& red, u8 /*green*/, u8& blue, u8 /*alpha*/) { std::swap(red, blue); }