mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +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);
|
||||
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 */
|
||||
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 ",
|
||||
clause->name);
|
||||
}
|
||||
|
||||
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);
|
||||
if ((clause->flags & CFG_CLAUSEFLAG_EXPERIMENTAL) != 0) {
|
||||
cfg_parser_warning(pctx, 0,
|
||||
"option '%s' is experimental and "
|
||||
"subject to change in the future",
|
||||
clause->name);
|
||||
}
|
||||
|
||||
/* See if the clause already has a value; if not create one. */
|
||||
|
Reference in New Issue
Block a user