core: reenable wreorder (#46)

* cmake: re-enable wreorder

* implbase: fix wreorder

This fixes all reorder warnings... uh...
This commit is contained in:
Honkazel 2025-02-04 00:44:09 +05:00 committed by GitHub
parent 9aad80acd4
commit 3d9ae75886
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 4 deletions

View file

@ -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)

View file

@ -25,7 +25,7 @@ namespace Hyprutils {
template <typename T>
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 {
}
}
}
}