Closed esabol closed 6 years ago
CC=clang-5.0 && CXX=clang++-5.0 using llvm-toolchain-trusty-5.0 on trusty Linux.
CC=clang-5.0 && CXX=clang++-5.0
llvm-toolchain-trusty-5.0
trusty
libtest/client.cc:350:50: error: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Werror,-Wshorten-64-to-32] switch (ssl_error= SSL_get_error(_ssl, write_size)) ~~~~~~~~~~~~~ ^~~~~~~~~~ libtest/client.cc:470:48: error: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Werror,-Wshorten-64-to-32] switch (readErr= SSL_get_error(_ssl, read_size)) ~~~~~~~~~~~~~ ^~~~~~~~~ libtest/client.cc:565:48: error: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Werror,-Wshorten-64-to-32] switch (readErr= SSL_get_error(_ssl, read_size)) ~~~~~~~~~~~~~ ^~~~~~~~~ 3 errors generated.
libgearman-server/plugins/queue/redis/queue.cc:106:68: error: implicit conversion loses integer precision: 'std::vector::size_type' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32] ...*reply = (redisReply *)redisCommandArgv(context, argv.size(), &(argv[0])... ~~~~~~~~~~~~~~~~ ~~~~~^~~~~~ 1 error generated.
fixed by @esabol in #221
CC=clang-5.0 && CXX=clang++-5.0
usingllvm-toolchain-trusty-5.0
ontrusty
Linux.