From d497356835a8fb57c6f79e11b70ed99b00ba9c2e Mon Sep 17 00:00:00 2001 From: Mineplay Date: Sun, 5 Oct 2025 09:40:33 -0500 Subject: [PATCH] refactor(linting): fixed warnings given by clang --- Include/Hallocy/Core/Allocator.h | 2 +- Include/Hallocy/Core/Memory.h | 2 +- Include/Hallocy/Utils/Error.h | 2 +- Include/Hallocy/Utils/Simd.h | 4 ++-- Src/Core/Allocator.c | 2 +- Src/Core/Memory.c | 2 +- Src/Utils/Simd.c | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Include/Hallocy/Core/Allocator.h b/Include/Hallocy/Core/Allocator.h index 3699476..20f5f5d 100644 --- a/Include/Hallocy/Core/Allocator.h +++ b/Include/Hallocy/Core/Allocator.h @@ -35,4 +35,4 @@ static inline void *hallocy_calloc(const size_t size, size_t count) { return ha void *hallocy_realloc(void *memory_pointer, const size_t size); HallocyError hallocy_free(void *pointer); -#endif \ No newline at end of file +#endif diff --git a/Include/Hallocy/Core/Memory.h b/Include/Hallocy/Core/Memory.h index 29e78d3..44b8402 100644 --- a/Include/Hallocy/Core/Memory.h +++ b/Include/Hallocy/Core/Memory.h @@ -33,4 +33,4 @@ HallocyError hallocy_copy_memory(void *destination, void *source, const size_t s HallocyError hallocy_move_memory(void *destination, void *source, const size_t size); bool hallocy_compare_memory(void *left_side, void *right_side, const size_t size); -#endif \ No newline at end of file +#endif diff --git a/Include/Hallocy/Utils/Error.h b/Include/Hallocy/Utils/Error.h index 3e65784..fc87501 100644 --- a/Include/Hallocy/Utils/Error.h +++ b/Include/Hallocy/Utils/Error.h @@ -31,4 +31,4 @@ typedef enum { HALLOCY_ERROR_INVALID_PARAM = 4 } HallocyError; -#endif \ No newline at end of file +#endif diff --git a/Include/Hallocy/Utils/Simd.h b/Include/Hallocy/Utils/Simd.h index 3860e58..11beed0 100644 --- a/Include/Hallocy/Utils/Simd.h +++ b/Include/Hallocy/Utils/Simd.h @@ -50,6 +50,6 @@ typedef enum { HALLOCY_SIMD_NEON = 7 } HallocySimdType; -HallocySimdType hallocy_is_simd_supported(); +HallocySimdType hallocy_is_simd_supported(void); -#endif \ No newline at end of file +#endif diff --git a/Src/Core/Allocator.c b/Src/Core/Allocator.c index d703421..0f4dc9e 100644 --- a/Src/Core/Allocator.c +++ b/Src/Core/Allocator.c @@ -431,4 +431,4 @@ HallocyError hallocy_free(void *pointer) { } return HALLOCY_ERROR_NONE; -} \ No newline at end of file +} diff --git a/Src/Core/Memory.c b/Src/Core/Memory.c index 3fc4417..f6c43ab 100644 --- a/Src/Core/Memory.c +++ b/Src/Core/Memory.c @@ -643,4 +643,4 @@ bool hallocy_compare_memory(void *left_side, void *right_side, const size_t size } return true; -} \ No newline at end of file +} diff --git a/Src/Utils/Simd.c b/Src/Utils/Simd.c index b06de6a..5c86886 100644 --- a/Src/Utils/Simd.c +++ b/Src/Utils/Simd.c @@ -23,7 +23,7 @@ static HallocySimdType hallocy_supported_simd = HALLOCY_SIMD_UNDEFINED; -HallocySimdType hallocy_is_simd_supported() { +HallocySimdType hallocy_is_simd_supported(void) { if (hallocy_supported_simd != HALLOCY_SIMD_UNDEFINED) { return hallocy_supported_simd; } @@ -130,4 +130,4 @@ HallocySimdType hallocy_is_simd_supported() { hallocy_supported_simd = HALLOCY_SIMD_NONE; return hallocy_supported_simd; -} \ No newline at end of file +}