]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
shut up compiler
authorAlan T. DeKok <aland@freeradius.org>
Tue, 21 Jun 2022 12:51:55 +0000 (08:51 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 21 Jun 2022 12:53:59 +0000 (08:53 -0400)
src/lib/server/cf_file.c

index a7137aa1eea1baca8ff508326a3184cdca7fc4d7..e9d9ee8f157a7796ac6b9be5ee23b8772f818490 100644 (file)
@@ -1146,18 +1146,17 @@ static int process_template(cf_stack_t *stack)
 
 static int cf_file_fill(cf_stack_t *stack);
 
+#ifdef WITH_XLAT_COND
 static const fr_sbuff_term_t if_terminals = FR_SBUFF_TERMS(
        L(""),
        L("{"),
 );
+#endif
 
 static CONF_ITEM *process_if(cf_stack_t *stack)
 {
        ssize_t         slen = 0;
        fr_cond_t       *cond = NULL;
-#ifdef WITH_XLAT_COND
-       xlat_exp_head_t *head = NULL;
-#endif
        fr_dict_t const *dict = NULL;
        CONF_SECTION    *cs;
        char            *p;
@@ -1166,8 +1165,13 @@ static CONF_ITEM *process_if(cf_stack_t *stack)
        CONF_SECTION    *parent = frame->current;
        char            *buff[4];
        tmpl_rules_t    t_rules;
+#ifdef WITH_XLAT_COND
+       xlat_exp_head_t *head = NULL;
        fr_sbuff_parse_rules_t p_rules = { };
 
+       p_rules.terminals = &if_terminals;
+#endif
+
        /*
         *      Short names are nicer.
         */
@@ -1185,8 +1189,6 @@ static CONF_ITEM *process_if(cf_stack_t *stack)
                }
        };
 
-       p_rules.terminals = &if_terminals;
-
        /*
         *      fr_cond_tokenize needs the current section, so we
         *      create it first.  We don't pass a name2, as it hasn't