]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Avoid unused variable warning when WITH_VERIFY_PTR not set
authorNick Porter <nick@portercomputing.co.uk>
Wed, 10 Jul 2024 12:44:58 +0000 (13:44 +0100)
committerNick Porter <nick@portercomputing.co.uk>
Wed, 10 Jul 2024 12:44:58 +0000 (13:44 +0100)
src/lib/unlang/map.c

index 87a3f2547940f2524c5c123ffc6c9cc5ce6d3e10..05389205ff47c86789354e8c9680b06226d150eb 100644 (file)
@@ -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;
 }