mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 16:45:24 +00:00
Log experimental options
Log a warning for the 'experimental' clause flag similar to the 'deprecated' flag.
This commit is contained in:
@@ -2448,6 +2448,13 @@ cfg_parse_mapbody(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret) {
|
|||||||
clause->name);
|
clause->name);
|
||||||
CHECK(ISC_R_FAILURE);
|
CHECK(ISC_R_FAILURE);
|
||||||
}
|
}
|
||||||
|
if ((clause->flags & CFG_CLAUSEFLAG_NOTCONFIGURED) != 0) {
|
||||||
|
cfg_parser_error(pctx, 0,
|
||||||
|
"option '%s' was not "
|
||||||
|
"enabled at compile time",
|
||||||
|
clause->name);
|
||||||
|
CHECK(ISC_R_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
/* Issue warnings if appropriate */
|
/* Issue warnings if appropriate */
|
||||||
if ((pctx->flags & CFG_PCTX_NODEPRECATED) == 0 &&
|
if ((pctx->flags & CFG_PCTX_NODEPRECATED) == 0 &&
|
||||||
@@ -2462,13 +2469,11 @@ cfg_parse_mapbody(cfg_parser_t *pctx, const cfg_type_t *type, cfg_obj_t **ret) {
|
|||||||
"should be removed ",
|
"should be removed ",
|
||||||
clause->name);
|
clause->name);
|
||||||
}
|
}
|
||||||
|
if ((clause->flags & CFG_CLAUSEFLAG_EXPERIMENTAL) != 0) {
|
||||||
if ((clause->flags & CFG_CLAUSEFLAG_NOTCONFIGURED) != 0) {
|
cfg_parser_warning(pctx, 0,
|
||||||
cfg_parser_error(pctx, 0,
|
"option '%s' is experimental and "
|
||||||
"option '%s' was not "
|
"subject to change in the future",
|
||||||
"enabled at compile time",
|
|
||||||
clause->name);
|
clause->name);
|
||||||
CHECK(ISC_R_FAILURE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* See if the clause already has a value; if not create one. */
|
/* See if the clause already has a value; if not create one. */
|
||||||
|
Reference in New Issue
Block a user