diff --git a/src/mx/memory/tagged_ptr.h b/src/mx/memory/tagged_ptr.h index bdac79c..8dff7f1 100644 --- a/src/mx/memory/tagged_ptr.h +++ b/src/mx/memory/tagged_ptr.h @@ -12,7 +12,7 @@ namespace mx::memory { template class tagged_ptr { public: - constexpr tagged_ptr() noexcept + constexpr tagged_ptr() noexcept : _object_pointer(0U) { static_assert(sizeof(I) == 2U); static_assert(sizeof(tagged_ptr) == 8U); @@ -81,7 +81,7 @@ private: /** * Pointer to the instance of T, only 48bit are used. */ - std::uintptr_t _object_pointer : 48 {0U}; + std::uintptr_t _object_pointer : 48; /** * Information stored within this pointer, remaining 16bit are used. @@ -98,4 +98,4 @@ template struct hash> return std::hash().operator()(ptr.get()); } }; -} // namespace std \ No newline at end of file +} // namespace std diff --git a/src/mx/resource/resource.h b/src/mx/resource/resource.h index c95e2a2..3746ba5 100644 --- a/src/mx/resource/resource.h +++ b/src/mx/resource/resource.h @@ -164,7 +164,7 @@ private: class information { public: - constexpr information() noexcept = default; + constexpr information() noexcept : _channel_id(0U), _synchronization_primitive(0U) { } explicit information(const std::uint16_t channel_id, const synchronization::primitive synchronization_primitive) noexcept : _channel_id(channel_id), _synchronization_primitive(static_cast(synchronization_primitive)) @@ -182,8 +182,8 @@ public: information &operator=(const information &other) = default; private: - std::uint16_t _channel_id : 12 {0U}; - std::uint16_t _synchronization_primitive : 4 {0U}; + std::uint16_t _channel_id : 12; + std::uint16_t _synchronization_primitive : 4; } __attribute__((packed)); /** @@ -220,4 +220,4 @@ template static auto *ptr_cast(const ptr resource) noexcept return resource.template get(); } -} // namespace mx::resource \ No newline at end of file +} // namespace mx::resource