提交 9df63f2f 编写于 作者: K KernelMaker

update pink and delete some compile warning

上级 7995d7af
......@@ -7,7 +7,7 @@ os:
addons:
apt:
packages: ['zlib1g-dev', 'libbz2-dev', 'libsnappy-dev', 'curl', 'libprotobuf-dev', 'protobuf-compiler', 'libevent-devel']
packages: ['zlib1g-dev', 'libbz2-dev', 'libsnappy-dev', 'curl', 'libprotobuf-dev', 'protobuf-compiler']
compiler:
- gcc
......
......@@ -138,7 +138,7 @@ int main(int argc, char *argv[]) {
rlimit limit;
if (getrlimit(RLIMIT_NOFILE,&limit) == -1) {
LOG(WARNING) << "getrlimit error: " << strerror(errno);
} else if (limit.rlim_cur < g_pika_conf->maxclients() + PIKA_MIN_RESERVED_FDS) {
} else if (limit.rlim_cur < static_cast<unsigned int>(g_pika_conf->maxclients() + PIKA_MIN_RESERVED_FDS)) {
rlim_t old_limit = limit.rlim_cur;
rlim_t best_limit = g_pika_conf->maxclients() + PIKA_MIN_RESERVED_FDS;
limit.rlim_cur = best_limit > limit.rlim_max ? limit.rlim_max-1 : best_limit;
......
......@@ -29,7 +29,7 @@ void BinlogBGWorker::DoBinlogBG(void* arg) {
LOG(WARNING) << "Fail to initial command from binlog: " << opt;
}
uint64_t start_us;
uint64_t start_us = 0;
if (g_pika_conf->slowlog_slower_than() >= 0) {
start_us = slash::NowMicros();
}
......
......@@ -45,7 +45,7 @@ std::string PikaClientConn::DoCmd(const std::string& opt) {
return "-ERR NOAUTH Authentication required.\r\n";
}
uint64_t start_us;
uint64_t start_us = 0;
if (g_pika_conf->slowlog_slower_than() >= 0) {
start_us = slash::NowMicros();
}
......
Subproject commit 14e45570276ca1663b7913a8c11c4ad065db2b2f
Subproject commit 1c9d5aed644b2a9094e46e8ee7a9828e598a82ba
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册