Skip to content

Commit

Permalink
Make GCC happy
Browse files Browse the repository at this point in the history
Think this is compatible from GCC 4.6 onwards, as well as clang.
  • Loading branch information
jasonmp85 committed Aug 29, 2015
1 parent f5a7d7b commit 8e06a7d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/create_shards.c
Expand Up @@ -245,7 +245,7 @@ master_create_worker_shards(PG_FUNCTION_ARGS)
List *extendedDDLCommands = NIL;
int64 shardId = -1;
int32 placementCount = 0;
int32 roundRobinNodeIndex = shardIndex % workerNodeCount;
int32 roundRobinNodeIndex = (int32) shardIndex % workerNodeCount;

/* initialize the hash token space for this shard */
text *minHashTokenText = NULL;
Expand Down
1 change: 1 addition & 0 deletions src/ruleutils_93.c
Expand Up @@ -73,6 +73,7 @@
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wempty-body"
#pragma GCC diagnostic ignored "-Wsign-compare"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wswitch"


Expand Down
1 change: 1 addition & 0 deletions src/ruleutils_94.c
Expand Up @@ -75,6 +75,7 @@
#pragma GCC diagnostic ignored "-Wconversion"
#pragma GCC diagnostic ignored "-Wempty-body"
#pragma GCC diagnostic ignored "-Wsign-compare"
#pragma GCC diagnostic ignored "-Wsign-conversion"
#pragma GCC diagnostic ignored "-Wswitch"


Expand Down

0 comments on commit 8e06a7d

Please sign in to comment.