From: Georgi Gerganov Date: Thu, 5 Jan 2023 19:40:38 +0000 (+0200) Subject: ggml : add void to argument-less functions X-Git-Tag: upstream/1.7.4~1656 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=0a0cfa7985281d78c848abb9a55663aa024de162;p=pkg%2Fggml%2Fsources%2Fwhisper.cpp ggml : add void to argument-less functions --- diff --git a/ggml.c b/ggml.c index 5ce44d26..220be5ee 100644 --- a/ggml.c +++ b/ggml.c @@ -1237,7 +1237,7 @@ static struct ggml_state g_state; static atomic_int g_state_barrier = 0; // barrier via spin lock -inline static void ggml_critical_section_start() { +inline static void ggml_critical_section_start(void) { int processing = atomic_fetch_add(&g_state_barrier, 1); while (processing > 0) { @@ -1250,7 +1250,7 @@ inline static void ggml_critical_section_start() { // TODO: make this somehow automatically executed // some sort of "sentry" mechanism -inline static void ggml_critical_section_end() { +inline static void ggml_critical_section_end(void) { atomic_fetch_sub(&g_state_barrier, 1); }