From: Nick Porter Date: Wed, 10 Jul 2024 12:44:58 +0000 (+0100) Subject: Avoid unused variable warning when WITH_VERIFY_PTR not set X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c682b412b96a4d408fe9f93e477a974ccd5f8170;p=thirdparty%2Ffreeradius-server.git Avoid unused variable warning when WITH_VERIFY_PTR not set --- diff --git a/src/lib/unlang/map.c b/src/lib/unlang/map.c index 87a3f254794..05389205ff4 100644 --- a/src/lib/unlang/map.c +++ b/src/lib/unlang/map.c @@ -284,10 +284,17 @@ static unlang_action_t unlang_update_state_init(rlm_rcode_t *p_result, request_t } static unlang_action_t map_proc_resume(UNUSED rlm_rcode_t *p_result, UNUSED request_t *request, - unlang_stack_frame_t *frame) +#ifdef WITH_VERIFY_PTR + unlang_stack_frame_t *frame +#else + UNUSED unlang_stack_frame_t *frame +#endif + ) { +#ifdef WITH_VERIFY_PTR unlang_frame_state_map_proc_t *map_proc_state = talloc_get_type_abort(frame->state, unlang_frame_state_map_proc_t); VALUE_BOX_LIST_VERIFY(&map_proc_state->src_result); +#endif return UNLANG_ACTION_CALCULATE_RESULT; }