aboutsummaryrefslogtreecommitdiff
path: root/c/blake3_dispatch.c
diff options
context:
space:
mode:
authorFangrui Song <[email protected]>2022-04-09 09:57:40 -0700
committerJack O'Connor <[email protected]>2022-04-09 11:00:17 -0700
commit9114ff8ed1818f1d9831f1b8963a469b2f9e9438 (patch)
treecc2c0708264254045e49e9071bac44412946e5b8 /c/blake3_dispatch.c
parent4393a9b79c4d39c6836010a8b5f1a04d069e4521 (diff)
add prototypes to fix -Wstrict-prototypes warnings
Diffstat (limited to 'c/blake3_dispatch.c')
-rw-r--r--c/blake3_dispatch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/blake3_dispatch.c b/c/blake3_dispatch.c
index b498058..95213db 100644
--- a/c/blake3_dispatch.c
+++ b/c/blake3_dispatch.c
@@ -17,7 +17,7 @@
#define MAYBE_UNUSED(x) (void)((x))
#if defined(IS_X86)
-static uint64_t xgetbv() {
+static uint64_t xgetbv(void) {
#if defined(_MSC_VER)
return _xgetbv(0);
#else
@@ -82,7 +82,7 @@ static /* Allow the variable to be controlled manually for testing */
static
#endif
enum cpu_feature
- get_cpu_features() {
+ get_cpu_features(void) {
if (g_cpu_features != UNDEFINED) {
return g_cpu_features;