We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b23bf9 commit cd5b2f6Copy full SHA for cd5b2f6
1 file changed
src/cmark.c
@@ -6,9 +6,9 @@
6
#include "cmark.h"
7
#include "buffer.h"
8
9
-int cmark_version() { return CMARK_VERSION; }
+int cmark_version(void) { return CMARK_VERSION; }
10
11
-const char *cmark_version_string() { return CMARK_VERSION_STRING; }
+const char *cmark_version_string(void) { return CMARK_VERSION_STRING; }
12
13
static void *xcalloc(size_t nmem, size_t size) {
14
void *ptr = calloc(nmem, size);
@@ -30,7 +30,7 @@ static void *xrealloc(void *ptr, size_t size) {
30
31
cmark_mem DEFAULT_MEM_ALLOCATOR = {xcalloc, xrealloc, free};
32
33
-cmark_mem *cmark_get_default_mem_allocator() {
+cmark_mem *cmark_get_default_mem_allocator(void) {
34
return &DEFAULT_MEM_ALLOCATOR;
35
}
36
0 commit comments