From 1a9d1876bfa7fc34a0b7260121575deeff69f243 Mon Sep 17 00:00:00 2001 From: Julien Rouhaud Date: Sat, 17 Nov 2018 20:44:27 +0100 Subject: [PATCH] Fix various compilation warnings --- hypopg.c | 2 +- hypopg_index.c | 2 ++ hypopg_table.c | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hypopg.c b/hypopg.c index ccfe05a..926b965 100644 --- a/hypopg.c +++ b/hypopg.c @@ -434,7 +434,7 @@ hypo_process_inval(void) Oid relid = lfirst_oid(lc); hypoTable *entry = hypo_find_table(relid, false); char *relname = get_rel_name(relid); - bool found; + bool found = false; /* * The pending invalidations should be filtered and recorded after diff --git a/hypopg_index.c b/hypopg_index.c index e1f3fe5..332e6ac 100644 --- a/hypopg_index.c +++ b/hypopg_index.c @@ -358,7 +358,9 @@ hypo_index_store_parsetree(IndexStmt *node, const char *queryString) { Relation relation = relation_open(relid, AccessShareLock); bool ok = relation->rd_partkey == NULL; +#if PG_VERSION_NUM >= 110000 bool relispartition = relation->rd_rel->relispartition; +#endif relation_close(relation, NoLock); diff --git a/hypopg_table.c b/hypopg_table.c index 3ac3fca..c24db97 100644 --- a/hypopg_table.c +++ b/hypopg_table.c @@ -420,8 +420,10 @@ hypo_generate_partitiondesc(hypoTable *parent) int ndatums = 0; int default_index = -1; +#if PG_VERSION_NUM >= 110000 /* Hash partitioning specific */ PartitionHashBound **hbounds = NULL; +#endif /* List partitioning specific */ PartitionListValue **all_values = NULL;