From: Willy Tarreau Date: Wed, 1 Jul 2026 13:38:34 +0000 (+0200) Subject: CLEANUP: trace/config: do not register section "traces" with USE_TRACE=0 X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/%7B@url%7D?a=commitdiff_plain;h=5dff525422fe247fd9fba1196ad84cd2ede734e9;p=haproxy.git 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. --- diff --git a/src/cfgparse.c b/src/cfgparse.c index d1cb5af6f..6d528dd48 100644 --- a/src/cfgparse.c +++ b/src/cfgparse.c @@ -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 },