Support C11

pull/226/head
Francisco Miguel Biete 2022-05-13 09:47:13 +01:00 committed by GitHub
parent 9da7c8f583
commit 1596208b64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

4
guc.c
View File

@ -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);