From: Arran Cudbard-Bell Date: Sun, 5 Jun 2022 20:06:48 +0000 (-0400) Subject: Unused in debug builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a40f2a0bf3d23e5fbf13c59f7be9d75afbc78afc;p=thirdparty%2Ffreeradius-server.git Unused in debug builds --- diff --git a/src/lib/server/cf_parse.c b/src/lib/server/cf_parse.c index 59aed5b2be9..3a1f273b32d 100644 --- a/src/lib/server/cf_parse.c +++ b/src/lib/server/cf_parse.c @@ -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 */