From 3d9ae7588631e0107c58c240fa7bef294fc5054b Mon Sep 17 00:00:00 2001 From: Honkazel <169346573+Honkazel@users.noreply.github.com> Date: Tue, 4 Feb 2025 00:44:09 +0500 Subject: [PATCH] core: reenable wreorder (#46) * cmake: re-enable wreorder * implbase: fix wreorder This fixes all reorder warnings... uh... --- CMakeLists.txt | 3 +-- include/hyprutils/memory/ImplBase.hpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67c6c03..ca2591c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,8 +27,7 @@ add_compile_options( -Wno-unused-value -Wno-missing-field-initializers -Wno-narrowing - -Wno-pointer-arith - -Wno-reorder) + -Wno-pointer-arith) set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE) if(CMAKE_BUILD_TYPE MATCHES Debug OR CMAKE_BUILD_TYPE MATCHES DEBUG) diff --git a/include/hyprutils/memory/ImplBase.hpp b/include/hyprutils/memory/ImplBase.hpp index 9b9de54..8c32540 100644 --- a/include/hyprutils/memory/ImplBase.hpp +++ b/include/hyprutils/memory/ImplBase.hpp @@ -25,7 +25,7 @@ namespace Hyprutils { template class impl : public impl_base { public: - impl(T* data, bool lock = true) noexcept : _data(data), _lockable(lock) { + impl(T* data, bool lock = true) noexcept : _lockable(lock), _data(data) { ; } @@ -116,4 +116,4 @@ namespace Hyprutils { } } -} \ No newline at end of file +}