mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Compile with -Werror and -Wall (#1116)
* Compile global scheduler with -Werror -Wall. * Compile plasma manager with -Werror -Wall. * Compile local scheduler with -Werror -Wall. * Compile common code with -Werror -Wall. * Signed/unsigned comparisons. * More signed/unsigned fixes. * More signed/unsigned fixes and added extern keyword. * Fix linting. * Don't check strict-aliasing because Python.h doesn't pass.
This commit is contained in:
committed by
Philipp Moritz
parent
3764f2f2e1
commit
486cb64e3f
@@ -60,7 +60,7 @@ static inline void flushall_redis(void) {
|
||||
/* Readd the shard locations. */
|
||||
freeReplyObject(redisCommand(context, "SET NumRedisShards %d",
|
||||
db_shards_addresses.size()));
|
||||
for (int i = 0; i < db_shards_addresses.size(); ++i) {
|
||||
for (size_t i = 0; i < db_shards_addresses.size(); ++i) {
|
||||
freeReplyObject(redisCommand(context, "RPUSH RedisShards %s:%d",
|
||||
db_shards_addresses[i].c_str(),
|
||||
db_shards_ports[i]));
|
||||
@@ -68,7 +68,7 @@ static inline void flushall_redis(void) {
|
||||
redisFree(context);
|
||||
|
||||
/* Flush the remaining shards. */
|
||||
for (int i = 0; i < db_shards_addresses.size(); ++i) {
|
||||
for (size_t i = 0; i < db_shards_addresses.size(); ++i) {
|
||||
context = redisConnect(db_shards_addresses[i].c_str(), db_shards_ports[i]);
|
||||
freeReplyObject(redisCommand(context, "FLUSHALL"));
|
||||
redisFree(context);
|
||||
|
||||
Reference in New Issue
Block a user