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:
parent
4393a9b79c
commit
9114ff8ed1
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue