From ee848be84c67d21f1a64167b265c87533212e375 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Fri, 27 Oct 2023 18:26:27 +0300 Subject: [PATCH] Fix compilation error in profiler.c * src/profiler.c (memory): Declare outside of the PROFILER_CPU_SUPPORT conditional. (Bug#66774) --- src/profiler.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/profiler.c b/src/profiler.c index 6217071ef9c..199cf368a55 100644 --- a/src/profiler.c +++ b/src/profiler.c @@ -235,9 +235,6 @@ static enum profiler_cpu_running /* Hash-table log of CPU profiler. */ static struct profiler_log cpu; -/* Hash-table log of Memory profiler. */ -static struct profiler_log memory; - /* The current sampling interval in nanoseconds. */ static EMACS_INT current_sampling_interval; @@ -456,6 +453,9 @@ Before returning, a new log is allocated for future samples. */) /* Memory profiler. */ +/* Hash-table log of Memory profiler. */ +static struct profiler_log memory; + /* True if memory profiler is running. */ bool profiler_memory_running; -- 2.39.2