From a4fff135de6fa8d11003f7e854ed7cd12f16b169 Mon Sep 17 00:00:00 2001 From: WillisMedwell Date: Mon, 5 Feb 2024 18:56:21 +1100 Subject: [PATCH] Fixed warnings and errors --- include/Utily/Simd.hpp | 2 +- include/Utily/TypeErasedVector.hpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/Utily/Simd.hpp b/include/Utily/Simd.hpp index 9d4c83f..c9a30e8 100644 --- a/include/Utily/Simd.hpp +++ b/include/Utily/Simd.hpp @@ -140,7 +140,7 @@ namespace Utily::Simd128 { } template - UTY_ALWAYS_INLINE auto search(const char* src_begin, const size_t src_size, const char* val_begin) noexcept -> std::ptrdiff_t { + UTY_ALWAYS_INLINE auto search(const char* src_begin [[maybe_unused]], const size_t src_size [[maybe_unused]], const char* val_begin [[maybe_unused]]) noexcept -> std::ptrdiff_t { // static_assert(false, "Not implemented"); assert(false && "Not implemeted"); } diff --git a/include/Utily/TypeErasedVector.hpp b/include/Utily/TypeErasedVector.hpp index 1324417..77071e3 100644 --- a/include/Utily/TypeErasedVector.hpp +++ b/include/Utily/TypeErasedVector.hpp @@ -46,7 +46,8 @@ namespace Utily { #else void* new_data = std::realloc( _data, - _type_size * (static_cast(_data_capacity) * 2); + _type_size * (static_cast(_data_capacity) * 2) + ); #endif if (new_data != nullptr) { _data = new_data;