diff --git a/rpcs3/Emu/CPU/CPUDisAsm.h b/rpcs3/Emu/CPU/CPUDisAsm.h index 126a2a3874..33c9a465b0 100644 --- a/rpcs3/Emu/CPU/CPUDisAsm.h +++ b/rpcs3/Emu/CPU/CPUDisAsm.h @@ -23,7 +23,7 @@ protected: const std::add_pointer_t m_cpu; u32 m_op = 0; - virtual void Write(const std::string& value) + void Write(const std::string& value) { switch (m_mode) { diff --git a/rpcs3/Emu/RSX/Overlays/overlay_controls.h b/rpcs3/Emu/RSX/Overlays/overlay_controls.h index 02c8e1890f..59ff03c195 100644 --- a/rpcs3/Emu/RSX/Overlays/overlay_controls.h +++ b/rpcs3/Emu/RSX/Overlays/overlay_controls.h @@ -440,13 +440,13 @@ namespace rsx is_compiled = false; } - virtual void set_text(const std::u32string& text) + void set_text(const std::u32string& text) { this->text = text; is_compiled = false; } - virtual void set_text(localized_string_id id) + void set_text(localized_string_id id) { set_text(get_localized_u32string(id)); } diff --git a/rpcs3/Emu/RSX/VK/vkutils/swapchain.hpp b/rpcs3/Emu/RSX/VK/vkutils/swapchain.hpp index 442f00707e..4f731b50aa 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/swapchain.hpp +++ b/rpcs3/Emu/RSX/VK/vkutils/swapchain.hpp @@ -116,7 +116,7 @@ namespace vk return false; } - virtual bool init(u32 w, u32 h) + bool init(u32 w, u32 h) { m_width = w; m_height = h; diff --git a/rpcs3/cmake_modules/ConfigureCompiler.cmake b/rpcs3/cmake_modules/ConfigureCompiler.cmake index 2ae78ecd88..486eb4713a 100644 --- a/rpcs3/cmake_modules/ConfigureCompiler.cmake +++ b/rpcs3/cmake_modules/ConfigureCompiler.cmake @@ -31,6 +31,7 @@ else() add_compile_options(-Werror=sign-compare) add_compile_options(-Werror=reorder) add_compile_options(-Werror=return-type) + add_compile_options(-Werror=overloaded-virtual) #TODO Clean the code so these are removed add_compile_options(-Wno-attributes)