Skip to content

Commit

Permalink
add prototypes to fix -Wstrict-prototypes warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MaskRay authored and oconnor663 committed Apr 9, 2022
1 parent 4393a9b commit 9114ff8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion c/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions c/blake3_dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion c/example.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9114ff8

Please sign in to comment.