Skip to content

Commit a1f0704

Browse files
committed
Fix missing field initialization warning with clang
1 parent 6c1f2e3 commit a1f0704

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

native/advertise/mod_advertise.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ static void advertise_info(request_rec *r)
706706
/* List of directives specific to our module. */
707707
/* */
708708
/*--------------------------------------------------------------------------*/
709+
/* clang-format off */
709710
static const command_rec cmd_table[] = {
710711
AP_INIT_TAKE12("ServerAdvertise", /* directive name */
711712
cmd_advertise_m, /* config action routine */
@@ -737,9 +738,9 @@ static const command_rec cmd_table[] = {
737738
NULL, /* argument to include in call */
738739
RSRC_CONF, /* where available */
739740
"Local adress to bind to for Multicast logic"),
740-
{NULL},
741-
741+
{.name = NULL},
742742
};
743+
/* clang-format on */
743744

744745
/*--------------------------------------------------------------------------*/
745746
/* */

native/balancers/mod_lbmethod_cluster.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,14 +445,17 @@ static const char *cmd_proxyhctemplate(cmd_parms *cmd, void *dummy, const char *
445445
return NULL;
446446
}
447447

448+
/* clang-format off */
448449
static const command_rec lbmethod_cmds[] = {
449450
AP_INIT_FLAG("UseNocanon", cmd_nocanon, NULL, OR_ALL,
450451
"UseNocanon - When no ProxyPass or ProxyMatch for the URL, passes the URL path \"raw\" to the backend "
451452
"(Default: Off)"),
452453
AP_INIT_RAW_ARGS(
453454
"ModProxyClusterHCTemplate", cmd_proxyhctemplate, NULL, OR_ALL,
454455
"ModProxyClusterHCTemplate - Set of health check parameters to use with mod_lbmethod_cluster workers."),
455-
{NULL}};
456+
{.name = NULL}
457+
};
458+
/* clang-format on */
456459

457460
static void register_hooks(apr_pool_t *p)
458461
{

native/mod_manager/mod_manager.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3866,7 +3866,7 @@ static const char *cmd_manager_responsefieldsize(cmd_parms *cmd, void *mconfig,
38663866
return "ResponseFieldSize requires mod_proxy_http.c";
38673867
}
38683868

3869-
3869+
/* clang-format off */
38703870
static const command_rec manager_cmds[] = {
38713871
AP_INIT_TAKE1("Maxcontext", cmd_manager_maxcontext, NULL, OR_ALL,
38723872
"Maxcontext - number max context supported by mod_cluster"),
@@ -3910,8 +3910,9 @@ static const command_rec manager_cmds[] = {
39103910
"AJPSecret - secret for all mod_cluster node, not configued no secret."),
39113911
AP_INIT_TAKE1("ResponseFieldSize", cmd_manager_responsefieldsize, NULL, OR_ALL,
39123912
"ResponseFieldSize - Adjust the size of the proxy response field buffer."),
3913-
{NULL},
3913+
{.name = NULL}
39143914
};
3915+
/* clang-format on */
39153916

39163917
/* hooks declaration */
39173918

native/mod_proxy_cluster/mod_proxy_cluster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3731,7 +3731,7 @@ static const command_rec proxy_cluster_cmds[] = {
37313731
AP_INIT_TAKE1("ModProxyClusterThreadCount", cmd_mc_thread_count, NULL, OR_ALL,
37323732
"ModProxyClusterThreadCount - Set custom size for the watchdog thread pool (Default: 16)"),
37333733
#endif
3734-
{NULL}
3734+
{.name = NULL}
37353735
};
37363736
/* clang-format on */
37373737

0 commit comments

Comments
 (0)