]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Unused in debug builds
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 5 Jun 2022 20:06:48 +0000 (16:06 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 5 Jun 2022 20:07:06 +0000 (16:07 -0400)
src/lib/server/cf_parse.c

index 59aed5b2be967ea4c383a4be1a2ff3d5b55020c2..3a1f273b32dafbb6daa1475c43ea1da358e380f8 100644 (file)
@@ -396,8 +396,10 @@ static int CC_HINT(nonnull(4,5)) cf_pair_parse_internal(TALLOC_CTX *ctx, void *o
        CONF_PAIR       *cp, *dflt_cp = NULL;
 
        unsigned int    type = rule->type;
+#ifndef NDEBUG
        char const      *dflt = rule->dflt;
        fr_token_t      dflt_quote = rule->quote;
+#endif
        cf_parse_t      func = rule->func ? rule->func : cf_pair_parse_value;
 
        fr_assert(!fr_rule_is_tmpl(rule) || !dflt || (dflt_quote != T_INVALID)); /* We ALWAYS need a quoting type for templates */