From 5aefea87dccd4011d42f4f362e4d06ec8074e7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Sun, 10 Mar 2024 13:02:33 +0100 Subject: [PATCH] [mono] Fix function prototype in jiterpreter This causes a warning. Introduced in https://github.com/dotnet/runtime/pull/99273. ``` src/mono/mono/mini/interp/jiterpreter.c:1686:24: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes] mono_jiterp_is_enabled () { ^ void 1 warning generated. ``` --- src/mono/mono/mini/interp/jiterpreter.c | 2 +- src/mono/mono/mini/interp/jiterpreter.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mono/mono/mini/interp/jiterpreter.c b/src/mono/mono/mini/interp/jiterpreter.c index ba19266195cdcf..2a870e84f21a5f 100644 --- a/src/mono/mono/mini/interp/jiterpreter.c +++ b/src/mono/mono/mini/interp/jiterpreter.c @@ -1683,7 +1683,7 @@ mono_jiterp_is_enabled (void); #endif // HOST_BROWSER int -mono_jiterp_is_enabled () { +mono_jiterp_is_enabled (void) { #if HOST_BROWSER return mono_opt_jiterpreter_traces_enabled; #else diff --git a/src/mono/mono/mini/interp/jiterpreter.h b/src/mono/mono/mini/interp/jiterpreter.h index 7307e449c9c1a8..ed57b0a0e17b3e 100644 --- a/src/mono/mono/mini/interp/jiterpreter.h +++ b/src/mono/mono/mini/interp/jiterpreter.h @@ -240,6 +240,6 @@ mono_jiterp_tlqueue_purge_all (gpointer item); #endif // HOST_BROWSER int -mono_jiterp_is_enabled (); +mono_jiterp_is_enabled (void); #endif // __MONO_MINI_JITERPRETER_H__