This is an automated email from the ASF dual-hosted git repository. pnoltes pushed a commit to branch feature/585-celix-conditions in repository https://gitbox.apache.org/repos/asf/celix.git
commit 46e98e963f6b286021db66fde9a08c55f16dff69 Author: Pepijn Noltes <[email protected]> AuthorDate: Thu Jul 27 20:29:17 2023 +0200 Remove unused (when build type is not debug) variable. --- bundles/components_ready_check/src/celix_components_ready_check.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bundles/components_ready_check/src/celix_components_ready_check.c b/bundles/components_ready_check/src/celix_components_ready_check.c index 4eebd348..f157ef87 100644 --- a/bundles/components_ready_check/src/celix_components_ready_check.c +++ b/bundles/components_ready_check/src/celix_components_ready_check.c @@ -53,9 +53,7 @@ celix_components_ready_check_t* celix_componentsReadyCheck_create(celix_bundle_c } char filter[32]; - int written = - snprintf(filter, sizeof(filter), "(%s=%s)", CELIX_CONDITION_ID, CELIX_CONDITION_ID_FRAMEWORK_READY); - assert(written < sizeof(filter)); + snprintf(filter, sizeof(filter), "(%s=%s)", CELIX_CONDITION_ID, CELIX_CONDITION_ID_FRAMEWORK_READY); celix_service_tracking_options_t opts = CELIX_EMPTY_SERVICE_TRACKING_OPTIONS; opts.filter.serviceName = CELIX_CONDITION_SERVICE_NAME;
