From 4caad5f6e350519312ee5810cf855a8e9f7b49f3 Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Fri, 20 Dec 2024 12:17:49 +0100 Subject: [PATCH] fix: modular test error --- src/session/queryable.c | 5 ++++- src/session/subscription.c | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/session/queryable.c b/src/session/queryable.c index 641afba42..1244bd83f 100644 --- a/src/session/queryable.c +++ b/src/session/queryable.c @@ -269,5 +269,8 @@ void _z_flush_session_queryable(_z_session_t *zn) { _z_session_mutex_unlock(zn); } +#else // Z_FEATURE_QUERYABLE == 0 -#endif +void _z_queryable_cache_invalidate(_z_session_t *zn) { _ZP_UNUSED(zn); } + +#endif // Z_FEATURE_QUERYABLE == 1 diff --git a/src/session/subscription.c b/src/session/subscription.c index 6c007c148..9cdffd6b6 100644 --- a/src/session/subscription.c +++ b/src/session/subscription.c @@ -350,4 +350,6 @@ z_result_t _z_trigger_liveliness_subscriptions_undeclare(_z_session_t *zn, _z_ke return _Z_RES_OK; } +void _z_subscription_cache_invalidate(_z_session_t *zn) { _ZP_UNUSED(zn); } + #endif // Z_FEATURE_SUBSCRIPTION == 1