From 0bb3ff4bc0708edd2f4d600ff6a2e23b778c39e8 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Thu, 7 Dec 2023 19:53:48 +0100 Subject: [PATCH] trace: add RE_TRACE_ENABLED --- src/trace/trace.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/trace/trace.c b/src/trace/trace.c index b95a53d06..832d0f977 100644 --- a/src/trace/trace.c +++ b/src/trace/trace.c @@ -46,6 +46,8 @@ #endif +#ifdef RE_TRACE_ENABLED + struct trace_event { const char *name; const char *cat; @@ -133,6 +135,7 @@ static void flush_tmr(void *arg) tmr_start(&trace.flush_tmr, TRACE_FLUSH_TMR, flush_tmr, NULL); } +#endif /**