refactor(linting): fixed warnings given by clang
This commit is contained in:
parent
8359efa2bc
commit
d497356835
7 changed files with 9 additions and 9 deletions
|
|
@ -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);
|
void *hallocy_realloc(void *memory_pointer, const size_t size);
|
||||||
HallocyError hallocy_free(void *pointer);
|
HallocyError hallocy_free(void *pointer);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -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);
|
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);
|
bool hallocy_compare_memory(void *left_side, void *right_side, const size_t size);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -31,4 +31,4 @@ typedef enum {
|
||||||
HALLOCY_ERROR_INVALID_PARAM = 4
|
HALLOCY_ERROR_INVALID_PARAM = 4
|
||||||
} HallocyError;
|
} HallocyError;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -50,6 +50,6 @@ typedef enum {
|
||||||
HALLOCY_SIMD_NEON = 7
|
HALLOCY_SIMD_NEON = 7
|
||||||
} HallocySimdType;
|
} HallocySimdType;
|
||||||
|
|
||||||
HallocySimdType hallocy_is_simd_supported();
|
HallocySimdType hallocy_is_simd_supported(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -431,4 +431,4 @@ HallocyError hallocy_free(void *pointer) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return HALLOCY_ERROR_NONE;
|
return HALLOCY_ERROR_NONE;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -643,4 +643,4 @@ bool hallocy_compare_memory(void *left_side, void *right_side, const size_t size
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
static HallocySimdType hallocy_supported_simd = HALLOCY_SIMD_UNDEFINED;
|
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) {
|
if (hallocy_supported_simd != HALLOCY_SIMD_UNDEFINED) {
|
||||||
return hallocy_supported_simd;
|
return hallocy_supported_simd;
|
||||||
}
|
}
|
||||||
|
|
@ -130,4 +130,4 @@ HallocySimdType hallocy_is_simd_supported() {
|
||||||
|
|
||||||
hallocy_supported_simd = HALLOCY_SIMD_NONE;
|
hallocy_supported_simd = HALLOCY_SIMD_NONE;
|
||||||
return hallocy_supported_simd;
|
return hallocy_supported_simd;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue