pg_upgrade: remove C99 compiler req. from commit 3c0471b5fd
authorBruce Momjian <[email protected]>
Fri, 16 Oct 2020 00:37:19 +0000 (20:37 -0400)
committerBruce Momjian <[email protected]>
Fri, 16 Oct 2020 00:37:19 +0000 (20:37 -0400)
This commit required support for inline variable definition, which is
not a requirement.

RELEASE NOTE AUTHOR:  the author of commit 3c0471b5fd
(pg_upgrade/tablespaces) was Justin Pryzby, not me.

Reported-by: Andres Freund
Discussion: https://postgr.es/m/20201016001959[email protected]

Backpatch-through: 9.5

src/bin/pg_upgrade/check.c

index e0a9d37c13a29722d22b6564f060a810d02a9a01..3c0a1b05f054c9f0dba01c3a45615e232cbc8f8a 100644 (file)
@@ -496,11 +496,12 @@ create_script_for_cluster_analyze(char **analyze_script_file_name)
 static void
 check_for_new_tablespace_dir(ClusterInfo *new_cluster)
 {
+   int     tblnum;
    char    new_tablespace_dir[MAXPGPATH];
 
    prep_status("Checking for new cluster tablespace directories");
 
-   for (int tblnum = 0; tblnum < os_info.num_old_tablespaces; tblnum++)
+   for (tblnum = 0; tblnum < os_info.num_old_tablespaces; tblnum++)
    {
        struct stat statbuf;