Suppress compiler warnings.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Dec 2000 20:32:44 +0000 (20:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 9 Dec 2000 20:32:44 +0000 (20:32 +0000)
src/backend/catalog/index.c
src/backend/utils/cache/relcache.c

index 7c2bc1cdf1107beff660e7be7c937d33641f95df..e1478e52302870b042565b6c144a8569f17d080e 100644 (file)
@@ -21,6 +21,7 @@
  */
 #include "postgres.h"
 
+#include <unistd.h>
 
 #include "access/genam.h"
 #include "access/heapam.h"
@@ -1513,7 +1514,7 @@ setNewRelfilenode(Relation relation)
        Oid             newrelfilenode;
        bool            in_place_update = false;
        HeapTupleData   lockTupleData;
-       HeapTuple       classTuple;
+       HeapTuple       classTuple = NULL;
        Buffer          buffer;
        RelationData    workrel;
        
index 84b089e87535f27ef99f128b2ad98febd8c50c39..9157050d1925388df718666cf44d43678d27dfdb 100644 (file)
@@ -253,7 +253,6 @@ static void RelationClearRelation(Relation relation, bool rebuildIt);
 #ifdef ENABLE_REINDEX_NAILED_RELATIONS
 static void RelationReloadClassinfo(Relation relation);
 #endif /* ENABLE_REINDEX_NAILED_RELATIONS */
-static void RelationResetRelation(Relation relation, bool rebuildIt);
 static void RelationFlushRelation(Relation *relationPtr,
                                          int skipLocalRelations);
 static Relation RelationNameCacheGetRelation(const char *relationName);