Merge pull request #809 from fhuberts/fix-Wctor-dtor-privacy

Fix compiler warnings (-Wctor-dtor-privacy)
This commit is contained in:
Leonid Stryzhevskyi 2023-08-09 02:01:56 +03:00 committed by GitHub
commit 0842dd4133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -142,7 +142,7 @@ add_compiler_flags("-Wtrivial-auto-var-init") # gcc
# C++ Warning Flags
# See https://github.com/vadz/gcc-warnings-tools for gcc flags and versions
#
#add_cxx_compiler_flags(CMAKE_CXX_FLAGS "-Wctor-dtor-privacy") # gcc 4.6.0
add_cxx_compiler_flags(CMAKE_CXX_FLAGS "-Wctor-dtor-privacy") # gcc 4.6.0
add_cxx_compiler_flags(CMAKE_CXX_FLAGS "-Wnoexcept") # gcc 4.6.0
#add_cxx_compiler_flags(CMAKE_CXX_FLAGS "-Wold-style-cast") # gcc 4.6.0
add_cxx_compiler_flags(CMAKE_CXX_FLAGS "-Woverloaded-virtual") # gcc 4.6.0

View File

@ -53,6 +53,9 @@ public:
typedef std::list<std::shared_ptr<web::server::interceptor::ResponseInterceptor>> ResponseInterceptors;
typedef web::protocol::http::incoming::RequestHeadersReader RequestHeadersReader;
typedef protocol::http::utils::CommunicationUtils::ConnectionState ConnectionState;
HttpProcessor() = default;
public:
/**