Skip to content

Commit

Permalink
fix build warnnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper00 committed Jun 13, 2024
1 parent 07388d1 commit 08350cc
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lualib-src/lua_uuid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#define METANAME "luuid"

//////////////////////////////////uuid///////////////////////////////////
static constexpr int64_t FLAG_BITS = 1;
// static constexpr int64_t FLAG_BITS = 1;
static constexpr int64_t TYPE_BITS = 9;
static constexpr int64_t SERVERID_BITS = 12;
static constexpr int64_t BOOTTIMES_BITS = 10;
Expand Down
2 changes: 1 addition & 1 deletion moon-src/core/network/moon_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ namespace moon
cache_.clear();

asio::async_read(socket_, moon::streambuf(data_.get()), asio::transfer_exactly(static_cast<size_t>(-diff)),
[this, self = shared_from_this(), size, fin](const asio::error_code& e, std::size_t)
[this, self = shared_from_this(), fin](const asio::error_code& e, std::size_t)
{
if (!e)
{
Expand Down
2 changes: 0 additions & 2 deletions moon-src/core/network/stream_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ namespace moon
size_t max_size = 0;
static_string<max_delim_size> delim;

read_until() = default;

read_until(size_t max_size, std::string_view delims)
: max_size(max_size>0?max_size: std::numeric_limits<size_t>::max())
, delim(delims)
Expand Down
2 changes: 1 addition & 1 deletion moon-src/core/network/ws_connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ namespace moon
cache_.clear();

asio::async_read(socket_, moon::streambuf(data_.get()), asio::transfer_exactly(static_cast<size_t>(-diff)),
[this, self = shared_from_this(), size, fh](const asio::error_code& e, std::size_t)
[this, self = shared_from_this(), fh](const asio::error_code& e, std::size_t)
{
if (!e)
{
Expand Down

0 comments on commit 08350cc

Please sign in to comment.