referencing an item shouldn't prevent it from being parsed
*/
cp = cf_pair_find(cs, p);
if (cp) {
- cp->parsed = true; /* conf pairs which are referenced count as parsed */
+ cp->referenced = true; /* conf pairs which are referenced count as used */
return &(cp->item);
}
CONF_PAIR *cp;
cp = cf_item_to_pair(ci);
- if (cp->parsed || (ci->lineno < 0)) continue;
+ if (cp->parsed || cp->referenced || (ci->lineno < 0)) continue;
WARN("%s[%d]: The item '%s' is defined, but is unused by the configuration",
ci->filename, ci->lineno,
bool pass2; //!< do expansion in pass2.
bool parsed; //!< Was this item used during parsing?
+ bool referenced; //!< Was this item referenced in the config?
};
/** A section grouping multiple #CONF_PAIR