From fa068e7a5cd04c76bb38dc2e073c6e01a14791ff Mon Sep 17 00:00:00 2001 From: Arseny Sher Date: Mon, 16 Dec 2019 17:06:37 +0300 Subject: [PATCH] Silence a couple of windows warnings. --- src/include/init.h | 2 ++ src/partition_router.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/include/init.h b/src/include/init.h index 931528ef..2e7b49d9 100644 --- a/src/include/init.h +++ b/src/include/init.h @@ -92,6 +92,8 @@ simplify_mcxt_name(MemoryContext mcxt) return PATHMAN_BOUNDS_CACHE; else elog(ERROR, "unknown memory context"); + + return NULL; /* keep compiler quiet */ } diff --git a/src/partition_router.c b/src/partition_router.c index 8c3bac55..b602347b 100644 --- a/src/partition_router.c +++ b/src/partition_router.c @@ -390,6 +390,7 @@ router_extract_ctid(PartitionRouterState *state, TupleTableSlot *slot) elog(ERROR, UPDATE_NODE_NAME " does not support foreign tables"); else elog(ERROR, UPDATE_NODE_NAME " cannot handle relkind %u", relkind); + return *(ItemPointer) NULL; /* keep compiler quiet, lol */ } /* This is a heavily modified copy of ExecDelete from nodeModifyTable.c */