From: Eli Zaretskii Date: Fri, 27 Oct 2023 15:26:27 +0000 (+0300) Subject: Fix compilation error in profiler.c X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ee848be84c67d21f1a64167b265c87533212e375;p=emacs.git Fix compilation error in profiler.c * src/profiler.c (memory): Declare outside of the PROFILER_CPU_SUPPORT conditional. (Bug#66774) --- 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;