Skip to content

Commit 153d81f

Browse files
Michael Paquierdvarrazzo
authored andcommitted
Take care of warnings for unused parameters
1 parent 805c3bb commit 153d81f

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lib/reorg.c

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ reorg_apply(PG_FUNCTION_ARGS)
285285
}
286286

287287
/*
288-
* Parsed CREATE INDEX statement. You can rebuild sql using
288+
* Parsed CREATE INDEX statement. You can rebuild sql using
289289
* sprintf(buf, "%s %s ON %s USING %s (%s)%s",
290290
* create, index, table type, columns, options)
291291
*/
@@ -526,7 +526,7 @@ reorg_get_index_keys(PG_FUNCTION_ARGS)
526526
HeapTuple tp;
527527
Form_pg_opclass opclassTup;
528528
#endif
529-
529+
530530
opclass = OpclassnameGetOpcid(BTREE_AM_OID, opcname);
531531

532532
#if PG_VERSION_NUM >= 80300
@@ -648,8 +648,6 @@ reorg_swap(PG_FUNCTION_ARGS)
648648
Oid reltoastidxid2;
649649
Oid owner1;
650650
Oid owner2;
651-
int16 natts1;
652-
int16 natts2;
653651

654652
/* authority check */
655653
must_be_superuser("reorg_swap");
@@ -661,8 +659,7 @@ reorg_swap(PG_FUNCTION_ARGS)
661659
values[0] = ObjectIdGetDatum(oid);
662660
execute_with_args(SPI_OK_SELECT,
663661
"SELECT X.reltoastrelid, TX.reltoastidxid, X.relowner,"
664-
" Y.oid, Y.reltoastrelid, TY.reltoastidxid, Y.relowner,"
665-
" X.relnatts, Y.relnatts"
662+
" Y.oid, Y.reltoastrelid, TY.reltoastidxid, Y.relowner"
666663
" FROM pg_catalog.pg_class X LEFT JOIN pg_catalog.pg_class TX"
667664
" ON X.reltoastrelid = TX.oid,"
668665
" pg_catalog.pg_class Y LEFT JOIN pg_catalog.pg_class TY"
@@ -687,8 +684,6 @@ reorg_swap(PG_FUNCTION_ARGS)
687684
reltoastrelid2 = getoid(tuple, desc, 5);
688685
reltoastidxid2 = getoid(tuple, desc, 6);
689686
owner2 = getoid(tuple, desc, 7);
690-
natts1 = getint16(tuple, desc, 8);
691-
natts2 = getint16(tuple, desc, 9);;
692687

693688
/* change owner of new relation to original owner */
694689
if (owner1 != owner2)

0 commit comments

Comments
 (0)