]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix --enable-profiling builds (bug#34099)
authorGlenn Morris <rgm@gnu.org>
Thu, 17 Jan 2019 12:19:45 +0000 (07:19 -0500)
committerGlenn Morris <rgm@gnu.org>
Thu, 17 Jan 2019 12:19:45 +0000 (07:19 -0500)
* src/profiler.c (syms_of_profiler_for_pdumper):
Only set cpu_log if CPU profiling is enabled.

src/profiler.c

index a98d967b2a1d4c9e36903234e59d6bf21610a839..15a0eef0d3e0e2081411995f9db8d8a72c8dfacc 100644 (file)
@@ -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));
     }