summaryrefslogtreecommitdiff
path: root/include/mimalloc-internal.h
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2021-10-19 10:38:57 +0200
committerChristian Heimes <christian@python.org>2021-10-19 10:48:26 +0200
commit7c73e3996d5d729c1baec2e833985166a3f5db2e (patch)
tree7843e70a8d96b16808fb3bccc30696c867447288 /include/mimalloc-internal.h
parent076f815cece59e0a0ee08237c8fbba75465452b6 (diff)
Fix strict function prototype warnings
Fix warning ``warning: function declaration isn’t a prototype`` when building mimalloc with ``-Wstrict-prototypes`` flag. In C argumentless functions should be declared as ``func(void)``. Reproducer: ```shell $ cmake ../.. -DCMAKE_C_FLAGS="-Wstrict-prototypes" $ make VERBOSE=1 ``` Co-authored-by: Sam Gross <colesbury@gmail.com> Co-authored-by: Neil Schemenauer <nas@arctrix.com> Signed-off-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r--include/mimalloc-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h
index 1e1a796..9b097b8 100644
--- a/include/mimalloc-internal.h
+++ b/include/mimalloc-internal.h
@@ -53,7 +53,7 @@ static inline uintptr_t _mi_random_shuffle(uintptr_t x);
extern mi_decl_cache_align mi_stats_t _mi_stats_main;
extern mi_decl_cache_align const mi_page_t _mi_page_empty;
bool _mi_is_main_thread(void);
-bool _mi_preloading(); // true while the C runtime is not ready
+bool _mi_preloading(void); // true while the C runtime is not ready
// os.c
size_t _mi_os_page_size(void);