Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 70df648

Browse files
committed
Clean up gcc warnings.
1 parent 8b53eaf commit 70df648

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/backend/commands/rename.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.49 2000/10/16 17:08:05 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/Attic/rename.c,v 1.50 2000/10/20 02:53:10 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -177,17 +177,19 @@ renameatt(char *relname,
177177
void
178178
renamerel(const char *oldrelname, const char *newrelname)
179179
{
180-
int i;
181180
Relation targetrelation;
182181
Relation relrelation; /* for RELATION relation */
183182
HeapTuple oldreltup;
184183
Oid reloid;
185184
char relkind;
185+
Relation irelations[Num_pg_class_indices];
186+
#ifdef OLD_FILE_NAMING
187+
int i;
186188
char oldpath[MAXPGPATH],
187189
newpath[MAXPGPATH],
188190
toldpath[MAXPGPATH + 10],
189191
tnewpath[MAXPGPATH + 10];
190-
Relation irelations[Num_pg_class_indices];
192+
#endif
191193

192194
if (!allowSystemTableMods && IsSystemRelationName(oldrelname))
193195
elog(ERROR, "renamerel: system relation \"%s\" not renamed",

0 commit comments

Comments
 (0)