Skip to content

Commit e639f47

Browse files
committed
Fixed some warnings in the HTTP client request and client_exception.
1 parent ebc7762 commit e639f47

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

http/src/http/v2/client/client_errors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ namespace network {
7272

7373
}
7474

75-
client_exception::~client_exception() {
75+
client_exception::~client_exception() noexcept {
7676

7777
}
7878

http/src/network/http/v2/client/request.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ namespace network {
380380

381381
request &body(std::shared_ptr<byte_source> byte_source) {
382382
byte_source_ = byte_source;
383+
return *this;
383384
}
384385

385386
/**

http/test/v2/client/features/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ set(CPP-NETLIB_CLIENT_TESTS
1616
foreach(test ${CPP-NETLIB_CLIENT_TESTS})
1717
if (${CMAKE_CXX_COMPILER_ID} MATCHES GNU)
1818
set_source_files_properties(${test}.cpp
19-
PROPERTIES COMPILE_FLAGS "-g")
20-
# PROPERTIES COMPILE_FLAGS "-Wall")
19+
PROPERTIES COMPILE_FLAGS "-Wall")
2120
endif()
2221

2322
add_executable(cpp-netlib-http-v2-${test} ${test}.cpp)

0 commit comments

Comments
 (0)