1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-03-29 07:09:54 +01:00

add prototypes to fix -Wstrict-prototypes warnings

This commit is contained in:
Fangrui Song 2022-04-09 09:57:40 -07:00 committed by Jack O'Connor
parent 4393a9b79c
commit 9114ff8ed1
3 changed files with 4 additions and 4 deletions

View File

@ -13,7 +13,7 @@ result:
#include <string.h>
#include <unistd.h>
int main() {
int main(void) {
// Initialize the hasher.
blake3_hasher hasher;
blake3_hasher_init(&hasher);

View File

@ -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;

View File

@ -5,7 +5,7 @@
#include <string.h>
#include <unistd.h>
int main() {
int main(void) {
// Initialize the hasher.
blake3_hasher hasher;
blake3_hasher_init(&hasher);