Skip to content

Commit

Permalink
Merge 0ca9f1f into f8a40e2
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmp85 committed Jun 15, 2015
2 parents f8a40e2 + 0ca9f1f commit 21805ab
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ OBJS = connection.o create_shards.o citus_metadata_sync.o distribution_metadata.
extend_ddl_commands.o generate_ddl_commands.o pg_shard.o prune_shard_list.o \
repair_shards.o ruleutils.o

PG_CPPFLAGS = -std=c99 -Wall -Wextra -Werror -I$(libpq_srcdir)
PG_CPPFLAGS = -std=c99 -Wall -Wextra -Werror -Wno-unused-parameter -I$(libpq_srcdir)

# pg_shard and CitusDB have several functions that share the same name. When we
# link pg_shard against CitusDB on Linux, the loader resolves to the CitusDB
Expand Down
3 changes: 0 additions & 3 deletions distribution_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@
#include "access/attnum.h"
#include "access/htup.h"
#include "access/tupdesc.h"
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#include "executor/spi.h"
#pragma GCC diagnostic pop
#include "catalog/namespace.h"
#include "catalog/pg_type.h"
#include "nodes/makefuncs.h"
Expand Down
2 changes: 1 addition & 1 deletion test/distribution_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ is_distributed_table(PG_FUNCTION_ARGS)
* tables whatsoever.
*/
Datum
distributed_tables_exist(PG_FUNCTION_ARGS __attribute__((unused)))
distributed_tables_exist(PG_FUNCTION_ARGS)
{
bool distributedTablesExist = DistributedTablesExist();

Expand Down
6 changes: 0 additions & 6 deletions test/fake_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
#include "optimizer/restrictinfo.h"
#include "utils/palloc.h"

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"

/* local function forward declarations */
static void FakeGetForeignRelSize(PlannerInfo *root, RelOptInfo *baserel,
Oid foreigntableid);
Expand Down Expand Up @@ -144,6 +141,3 @@ FakeReScanForeignScan(ForeignScanState *node) { }
*/
static void
FakeEndForeignScan(ForeignScanState *node) { }


#pragma GCC diagnostic pop

0 comments on commit 21805ab

Please sign in to comment.