From ccc3c936c410259c0ab465884683ed1c0e2724a0 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Tue, 20 Dec 2022 12:39:03 +0100 Subject: [PATCH] sys/ztimer: ztimer_mock: guard ztimer_ondemand static functions --- sys/ztimer/mock.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/ztimer/mock.c b/sys/ztimer/mock.c index e757054bfb..f1cbe74b36 100644 --- a/sys/ztimer/mock.c +++ b/sys/ztimer/mock.c @@ -119,6 +119,7 @@ static void ztimer_mock_op_cancel(ztimer_clock_t *clock) self->armed = 0; } +#if MODULE_ZTIMER_ONDEMAND static void ztimer_mock_op_start(ztimer_clock_t *clock) { ztimer_mock_t *self = (ztimer_mock_t *)clock; @@ -138,6 +139,7 @@ static void ztimer_mock_op_stop(ztimer_clock_t *clock) DEBUG("zmock_stop: %3u\n", self->calls.stop); self->running = 0; } +#endif static const ztimer_ops_t ztimer_mock_ops = { .set = ztimer_mock_op_set,