From 1596208b648841b735c7a2b0398719ea480a6be2 Mon Sep 17 00:00:00 2001 From: Francisco Miguel Biete Date: Fri, 13 May 2022 09:47:13 +0100 Subject: [PATCH] Support C11 --- guc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guc.c b/guc.c index 219f7b5..a8e6747 100644 --- a/guc.c +++ b/guc.c @@ -34,7 +34,7 @@ static bool check_histogram_max(int *newval, void **extra, GucSource source); void init_guc(void) { - int i = 0; + int i = 0, j; conf[i] = (GucVariable) { .guc_name = "pg_stat_monitor.pgsm_max", @@ -191,7 +191,7 @@ init_guc(void) .guc_unit = 0, .guc_value = &PGSM_TRACK }; - for (int j = 0; j < conf[i].n_options; ++j) { + for (j = 0; j < conf[i].n_options; ++j) { strlcpy(conf[i].guc_options[j], track_options[j].name, sizeof(conf[i].guc_options[j])); } DefineEnumGUC(&conf[i++], track_options);