From 80a44a7b93da9b275be60f875799ffb687da4ed8 Mon Sep 17 00:00:00 2001 From: Nils Dijk Date: Thu, 9 Sep 2021 17:37:58 +0200 Subject: [PATCH] prevent double inclusion of columnar_tableam.h (#5266) Recently there are some warnings during the compilation of Citus. Part of the warnings come due to the `columnar_tableam.h` header not being properly guarded with defines and ifndef's. This PR fixes these warnings. --- src/include/columnar/columnar_tableam.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/include/columnar/columnar_tableam.h b/src/include/columnar/columnar_tableam.h index f0014a84f..6418e3dac 100644 --- a/src/include/columnar/columnar_tableam.h +++ b/src/include/columnar/columnar_tableam.h @@ -1,3 +1,5 @@ +#ifndef COLUMNAR_TABLEAM_H +#define COLUMNAR_TABLEAM_H #include "citus_version.h" #include "postgres.h" @@ -60,3 +62,6 @@ extern bool ColumnarSupportsIndexAM(char *indexAMName); extern bool IsColumnarTableAmTable(Oid relationId); extern TableDDLCommand * ColumnarGetTableOptionsDDL(Oid relationId); extern char * GetShardedTableDDLCommandColumnar(uint64 shardId, void *context); + + +#endif /* COLUMNAR_TABLEAM_H */