# include <windows.h>
#endif
-static int arm_has_crc32() {
+static int arm_has_crc32(void) {
#if defined(__linux__) && defined(ARM_AUXV_HAS_CRC32)
# ifdef HWCAP_CRC32
return (getauxval(AT_HWCAP) & HWCAP_CRC32) != 0 ? 1 : 0;
/* AArch64 has neon. */
#if !defined(__aarch64__) && !defined(_M_ARM64) && !defined(_M_ARM64EC)
-static inline int arm_has_neon() {
+static inline int arm_has_neon(void) {
#if defined(__linux__) && defined(ARM_AUXV_HAS_NEON)
# ifdef HWCAP_ARM_NEON
return (getauxval(AT_HWCAP) & HWCAP_ARM_NEON) != 0 ? 1 : 0;
/* AArch64 does not have ARMv6 SIMD. */
#if !defined(__aarch64__) && !defined(_M_ARM64) && !defined(_M_ARM64EC)
-static inline int arm_has_simd() {
+static inline int arm_has_simd(void) {
#if defined(__linux__) && defined(HAVE_SYS_AUXV_H)
const char *platform = (const char *)getauxval(AT_PLATFORM);
return strncmp(platform, "v6l", 3) == 0
#define ISA_V_HWCAP (1 << ('v' - 'a'))
#define ISA_ZBC_HWCAP (1 << 29)
-int Z_INTERNAL is_kernel_version_greater_or_equal_to_6_5() {
+int Z_INTERNAL is_kernel_version_greater_or_equal_to_6_5(void) {
struct utsname buffer;
if (uname(&buffer) == -1) {
// uname failed
static gzFile gz_open(const void *, int, const char *);
/* Initialize struct for gzFile state */
-static gzFile gz_state_init() {
+static gzFile gz_state_init(void) {
/* allocate gzFile structure to return */
gz_state *state = (gz_state *)zng_alloc(sizeof(gz_state));
if (state == NULL)