Skip to content

Commit

Permalink
Fix -Wstrict-prototypes warnings (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen authored Oct 13, 2022
1 parent 8b23bf9 commit cd5b2f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#include "cmark.h"
#include "buffer.h"

int cmark_version() { return CMARK_VERSION; }
int cmark_version(void) { return CMARK_VERSION; }

const char *cmark_version_string() { return CMARK_VERSION_STRING; }
const char *cmark_version_string(void) { return CMARK_VERSION_STRING; }

static void *xcalloc(size_t nmem, size_t size) {
void *ptr = calloc(nmem, size);
Expand All @@ -30,7 +30,7 @@ static void *xrealloc(void *ptr, size_t size) {

cmark_mem DEFAULT_MEM_ALLOCATOR = {xcalloc, xrealloc, free};

cmark_mem *cmark_get_default_mem_allocator() {
cmark_mem *cmark_get_default_mem_allocator(void) {
return &DEFAULT_MEM_ALLOCATOR;
}

Expand Down

0 comments on commit cd5b2f6

Please sign in to comment.