From: Alan T. DeKok Date: Wed, 19 Jan 2022 13:31:40 +0000 (-0500) Subject: various compiler fixes X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0cc21810f1d859ed4dfa2088a2c9ce8c0f2af0d;p=thirdparty%2Ffreeradius-server.git various compiler fixes --- diff --git a/src/lib/unlang/xlat_expr.c b/src/lib/unlang/xlat_expr.c index a003d3bca48..27068c58b76 100644 --- a/src/lib/unlang/xlat_expr.c +++ b/src/lib/unlang/xlat_expr.c @@ -59,8 +59,6 @@ RCSID("$Id$") * correctly, and the caller doesn't have to do it. */ -extern fr_dict_attr_t const *attr_cast_base; /* xlat_expr.c */ - static xlat_arg_parser_t const cast_xlat_args[] = { { .required = true, .type = FR_TYPE_INT32 }, { .required = true, .type = FR_TYPE_VOID }, @@ -156,7 +154,7 @@ static xlat_action_t xlat_binary_op(TALLOC_CTX *ctx, fr_dcursor_t *out, #define XLAT_BINARY_FUNC(_name, _op) \ static xlat_action_t xlat_func_ ## _name(TALLOC_CTX *ctx, fr_dcursor_t *out, \ - UNUSED xlat_ctx_t const *xctx, \ + xlat_ctx_t const *xctx, \ request_t *request, fr_value_box_list_t *in) \ { \ return xlat_binary_op(ctx, out, xctx, request, in, _op); \ @@ -251,7 +249,7 @@ static xlat_arg_parser_t const unary_sub_xlat_args[] = { static xlat_action_t xlat_func_unary_sub(TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, - UNUSED request_t *request, fr_value_box_list_t *in) + request_t *request, fr_value_box_list_t *in) { int rcode; fr_value_box_t *dst, a, *b; diff --git a/src/lib/unlang/xlat_priv.h b/src/lib/unlang/xlat_priv.h index 459046b7f57..fdfc4daa0b8 100644 --- a/src/lib/unlang/xlat_priv.h +++ b/src/lib/unlang/xlat_priv.h @@ -269,6 +269,8 @@ xlat_t *xlat_func_find(char const *name, ssize_t namelen); /* * xlat_eval.c */ +extern fr_dict_attr_t const *attr_cast_base; + void xlat_signal(xlat_func_signal_t signal, xlat_exp_t const *exp, request_t *request, void *rctx, fr_state_signal_t action);