]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
common,log,msg: Fix win32 compiler warnings
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Mon, 12 Oct 2020 09:55:12 +0000 (09:55 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Wed, 28 Oct 2020 09:56:06 +0000 (09:56 +0000)
commitea0967c963a0250f8ab4c76e04f8ff461cff8a9d
tree7f98527fbb13a6b2da56deed0c15764dafbb0755
parentb8ddd04364f31bd3cbcd32c169870ee177a2f4f3
common,log,msg: Fix win32 compiler warnings

This change will fix a few compiler warnings, most of them being
type mismatches that affect Windows builds.

Worth mentioning that "long" uses 32b on x64 Windows platforms,
which is a constant source of type mismatches.

There's a warning saying that the "select" event handler shouldn't
be used in production. Considering that this is the only available
mechanism on Windows for the time being, we're going to disable
this warning.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
src/client/Client.cc
src/common/compat.cc
src/common/fork_function.h
src/common/ifaddrs_win32.cc
src/common/module.c
src/common/util.cc
src/include/compat.h
src/log/Log.cc
src/log/LogClock.h
src/msg/async/EventSelect.cc
src/tools/rbd/Utils.cc