From 8ca414de0eb0b87f4c9a8d301cc45ec51312dace Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Thu, 17 Jan 2019 07:19:45 -0500 Subject: [PATCH] Fix --enable-profiling builds (bug#34099) * src/profiler.c (syms_of_profiler_for_pdumper): Only set cpu_log if CPU profiling is enabled. --- src/profiler.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/profiler.c b/src/profiler.c index a98d967b2a1..15a0eef0d3e 100644 --- a/src/profiler.c +++ b/src/profiler.c @@ -627,12 +627,16 @@ syms_of_profiler_for_pdumper (void) { if (dumped_with_pdumper_p ()) { +#ifdef PROFILER_CPU_SUPPORT cpu_log = Qnil; +#endif memory_log = Qnil; } else { +#ifdef PROFILER_CPU_SUPPORT eassert (NILP (cpu_log)); +#endif eassert (NILP (memory_log)); } -- 2.39.5