CLEANUP: trace/config: do not register section "traces" with USE_TRACE=0

We don't want to register the "traces" section when traces are disabled.
Also this forces us to continue to build trace.c.
This commit is contained in:
Willy Tarreau 2026-07-01 15:38:34 +02:00
parent 6ea18e0c74
commit 5dff525422

View file

@ -3184,7 +3184,9 @@ REGISTER_CONFIG_SECTION("global", cfg_parse_global, NULL);
REGISTER_CONFIG_SECTION("userlist", cfg_parse_users, NULL);
REGISTER_CONFIG_SECTION("mailers", cfg_parse_mailers, NULL);
REGISTER_CONFIG_SECTION("namespace_list", cfg_parse_netns, NULL);
#if defined(USE_TRACE)
REGISTER_CONFIG_SECTION("traces", cfg_parse_traces, NULL);
#endif
static struct cfg_kw_list cfg_kws = {{ },{
{ CFG_GLOBAL, "default-path", cfg_parse_global_def_path },