Fix --enable-profiling builds (bug#34099)

* src/profiler.c (syms_of_profiler_for_pdumper):
Only set cpu_log if CPU profiling is enabled.
This commit is contained in:
Glenn Morris 2019-01-17 07:19:45 -05:00
parent 0aece3e118
commit 8ca414de0e

View 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));
}