]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
various compiler fixes
authorAlan T. DeKok <aland@freeradius.org>
Wed, 19 Jan 2022 13:31:40 +0000 (08:31 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 19 Jan 2022 13:31:40 +0000 (08:31 -0500)
src/lib/unlang/xlat_expr.c
src/lib/unlang/xlat_priv.h

index a003d3bca48019a9a6df2a15413a338a339da4b5..27068c58b76617b13013c523bfcc16f6e5675ede 100644 (file)
@@ -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;
index 459046b7f57d3285ceaf92d074d39ded231af01a..fdfc4daa0b8dea83bea227cc9527797067c64255 100644 (file)
@@ -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);