]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ggml : add void to argument-less functions
authorGeorgi Gerganov <redacted>
Thu, 5 Jan 2023 19:40:38 +0000 (21:40 +0200)
committerGeorgi Gerganov <redacted>
Thu, 5 Jan 2023 19:40:38 +0000 (21:40 +0200)
ggml.c

diff --git a/ggml.c b/ggml.c
index 5ce44d26ff28a806f2b8f533431c6e27d70a3e10..220be5eedb44d3eb4e7e474f94219bf3d67df067 100644 (file)
--- 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);
 }