emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 8ca414d: Fix --enable-profiling builds (bug#34099)


From: Glenn Morris
Subject: [Emacs-diffs] master 8ca414d: Fix --enable-profiling builds (bug#34099)
Date: Thu, 17 Jan 2019 07:19:55 -0500 (EST)

branch: master
commit 8ca414de0eb0b87f4c9a8d301cc45ec51312dace
Author: Glenn Morris <address@hidden>
Commit: Glenn Morris <address@hidden>

    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 a98d967..15a0eef 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));
     }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]