Skip to content

Commit cd5b2f6

Browse files
authored
Fix -Wstrict-prototypes warnings (#452)
1 parent 8b23bf9 commit cd5b2f6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/cmark.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
#include "cmark.h"
77
#include "buffer.h"
88

9-
int cmark_version() { return CMARK_VERSION; }
9+
int cmark_version(void) { return CMARK_VERSION; }
1010

11-
const char *cmark_version_string() { return CMARK_VERSION_STRING; }
11+
const char *cmark_version_string(void) { return CMARK_VERSION_STRING; }
1212

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

3131
cmark_mem DEFAULT_MEM_ALLOCATOR = {xcalloc, xrealloc, free};
3232

33-
cmark_mem *cmark_get_default_mem_allocator() {
33+
cmark_mem *cmark_get_default_mem_allocator(void) {
3434
return &DEFAULT_MEM_ALLOCATOR;
3535
}
3636

0 commit comments

Comments
 (0)