aboutsummaryrefslogtreecommitdiffstats
path: root/src/config/ConfigTemplates.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/ConfigTemplates.hxx')
-rw-r--r--src/config/ConfigTemplates.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/config/ConfigTemplates.hxx b/src/config/ConfigTemplates.hxx
index 7b01ad40f..3a18ebdc8 100644
--- a/src/config/ConfigTemplates.hxx
+++ b/src/config/ConfigTemplates.hxx
@@ -24,9 +24,14 @@ struct ConfigTemplate {
const char *const name;
const bool repeatable;
+ // TODO: print warning when a deprecated option is used
+ const bool deprecated;
+
constexpr ConfigTemplate(const char *_name,
- bool _repeatable=false)
- :name(_name), repeatable(_repeatable) {}
+ bool _repeatable=false,
+ bool _deprecated=false)
+ :name(_name), repeatable(_repeatable),
+ deprecated(_deprecated) {}
};
extern const ConfigTemplate config_param_templates[];