From: Glenn Morris Date: Thu, 17 Jan 2019 12:19:45 +0000 (-0500) Subject: Fix --enable-profiling builds (bug#34099) X-Git-Tag: emacs-27.0.90~3806 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8ca414de0eb0b87f4c9a8d301cc45ec51312dace;p=emacs.git Fix --enable-profiling builds (bug#34099) * src/profiler.c (syms_of_profiler_for_pdumper): Only set cpu_log if CPU profiling is enabled. --- 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)); }