Fix compiler warnings
[smlar.git] / smlar_gist.c
index 7d77788..480d744 100644 (file)
@@ -246,11 +246,12 @@ getHashedCache(void *cache)
                for(i=0;i<stat->nelems;i++)
                {
                        uint32  hash;
+                       int             index;
 
                        hash = DatumGetUInt32(FunctionCall1Coll(&stat->info->hashFunc,
                                                                                                        DEFAULT_COLLATION_OID,
                                                                                                        stat->elems[i].datum));
-                       int             index = HASHVAL(hash);
+                       index = HASHVAL(hash);
 
                        stat->helems[i].hash = hash;
                        stat->helems[i].idfMin = stat->helems[i].idfMax = stat->elems[i].idf;