gearman / gearmand

http://gearman.org/
Other
741 stars 138 forks source link

Build fails with clang 5.0 #220

Closed esabol closed 6 years ago

esabol commented 6 years ago

CC=clang-5.0 && CXX=clang++-5.0 using llvm-toolchain-trusty-5.0 on trusty Linux.

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.
p-alik commented 6 years ago

fixed by @esabol in #221