Browse Source
Merge pull request #3670 from lioncash/reorder
CMakeLists: Make -Wreorder a compile-time error
pull/15/merge
Mat M
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
7 additions and
5 deletions
-
src/CMakeLists.txt
-
src/core/hle/kernel/kernel.cpp
-
src/video_core/gpu_asynch.cpp
-
src/video_core/renderer_opengl/renderer_opengl.cpp
|
|
|
@ -53,6 +53,7 @@ if (MSVC) |
|
|
|
else() |
|
|
|
add_compile_options( |
|
|
|
-Wall |
|
|
|
-Werror=reorder |
|
|
|
-Wno-attributes |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
@ -103,7 +103,7 @@ static void ThreadWakeupCallback(u64 thread_handle, [[maybe_unused]] s64 cycles_ |
|
|
|
|
|
|
|
struct KernelCore::Impl { |
|
|
|
explicit Impl(Core::System& system, KernelCore& kernel) |
|
|
|
: system{system}, global_scheduler{kernel}, synchronization{system}, time_manager{system} {} |
|
|
|
: global_scheduler{kernel}, synchronization{system}, time_manager{system}, system{system} {} |
|
|
|
|
|
|
|
void Initialize(KernelCore& kernel) { |
|
|
|
Shutdown(); |
|
|
|
|
|
|
|
@ -12,8 +12,9 @@ namespace VideoCommon { |
|
|
|
|
|
|
|
GPUAsynch::GPUAsynch(Core::System& system, std::unique_ptr<VideoCore::RendererBase>&& renderer_, |
|
|
|
std::unique_ptr<Core::Frontend::GraphicsContext>&& context) |
|
|
|
: GPU(system, std::move(renderer_), true), gpu_thread{system}, gpu_context(std::move(context)), |
|
|
|
cpu_context(renderer->GetRenderWindow().CreateSharedContext()) {} |
|
|
|
: GPU(system, std::move(renderer_), true), gpu_thread{system}, |
|
|
|
cpu_context(renderer->GetRenderWindow().CreateSharedContext()), |
|
|
|
gpu_context(std::move(context)) {} |
|
|
|
|
|
|
|
GPUAsynch::~GPUAsynch() = default; |
|
|
|
|
|
|
|
|
|
|
|
@ -315,8 +315,8 @@ public: |
|
|
|
|
|
|
|
RendererOpenGL::RendererOpenGL(Core::Frontend::EmuWindow& emu_window, Core::System& system, |
|
|
|
Core::Frontend::GraphicsContext& context) |
|
|
|
: VideoCore::RendererBase{emu_window}, emu_window{emu_window}, system{system}, |
|
|
|
frame_mailbox{}, context{context}, has_debug_tool{HasDebugTool()} {} |
|
|
|
: RendererBase{emu_window}, emu_window{emu_window}, system{system}, context{context}, |
|
|
|
has_debug_tool{HasDebugTool()} {} |
|
|
|
|
|
|
|
RendererOpenGL::~RendererOpenGL() = default; |
|
|
|
|
|
|
|
|