-
Notifications
You must be signed in to change notification settings - Fork 792
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix or suppress Windows build warnings (#4195)
* Fix conversion warn in message_deserializer.cpp Fix warning C4267: '+=': conversion from 'size_t' to 'unsigned int', possible loss of data * Fix conversion warn in inproc.cpp Fix warning C4267: '+=': conversion from 'size_t' to 'unsigned int', possible loss of data * Add std:: namespace prefix to all size_t declarations in socket.?pp * Suppress argument conversion in socket.cpp Suppresses the warning C4267: 'argument': conversion from 'size_t' to 'unsigned short', possible loss of data * Fix possible signed int issue in socket.cpp Suppress warning C4018: '>=': signed/unsigned mismatch and ensure the counted_connections is an absolute number before its comparison. * Suppress data loss warn in peer_container.cpp Suppress warning C4267: 'initializing': conversion from 'size_t' to 'unsigned int', possible loss of data * Suppress signed/unsigned warn in peer_container.cpp Suppress warning C4018: '<': signed/unsigned mismatch * Refactor nano::to_stat_detail Fix warning C4700: uninitialized local variable 'result' used. Also removed the unreachable break statements and add an assert_debug for ensuring the nano::stat::detail::_last is never returned. * Removed an unreachable argument variable in blockprocessor.cpp Fix warning C4101: 'e': unreferenced local variable Signed-off-by: Thiago Silva <[email protected]> * Tentative to fix the wrongly infered compiler warn in bootstrap_ascending.cpp Address warning C4267: '=': conversion from 'size_t' to 'uint8_t', possible loss of data. The compiler infers there is a conversion, but no conversion is done. Suppressed the warning message. * Fix conversion warn on var initialization in node.cpp Fix warning C4244: 'initializing': conversion from 'double' to 'uint64_t', possible loss of data * Fix argument conversion warn in node.cpp Fix warning C4244: 'argument': conversion from 'uint64_t' to 'const _Ty', possible loss of data --------- Signed-off-by: Thiago Silva <[email protected]>
- Loading branch information
Showing
9 changed files
with
27 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters