forked from boostorg/beast
Fix warnings
This commit is contained in:
committed by
Vinnie Falco
parent
728e7f648f
commit
c07ba6aeeb
@@ -23,7 +23,7 @@ struct file_body
|
|||||||
|
|
||||||
class writer
|
class writer
|
||||||
{
|
{
|
||||||
std::uint64_t size_;
|
std::uint64_t size_ = 0;
|
||||||
std::uint64_t offset_ = 0;
|
std::uint64_t offset_ = 0;
|
||||||
std::string const& path_;
|
std::string const& path_;
|
||||||
FILE* file_ = nullptr;
|
FILE* file_ = nullptr;
|
||||||
|
@@ -110,7 +110,7 @@ is_valid(close_code::value code)
|
|||||||
if(v >= 1016 && v <= 2999)
|
if(v >= 1016 && v <= 2999)
|
||||||
return false;
|
return false;
|
||||||
// not used
|
// not used
|
||||||
if(v >= 0 && v <= 999)
|
if(v <= 999)
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@@ -51,7 +51,7 @@ teardown(teardown_tag, Socket& socket, error_code& ec)
|
|||||||
*/
|
*/
|
||||||
static_assert(sizeof(Socket)==-1,
|
static_assert(sizeof(Socket)==-1,
|
||||||
"Unknown Socket type in teardown.");
|
"Unknown Socket type in teardown.");
|
||||||
};
|
}
|
||||||
|
|
||||||
/** Start tearing down a connection.
|
/** Start tearing down a connection.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user