Skip to content

Commit

Permalink
Remove unused includes, fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Dec 19, 2024
1 parent a79b3e6 commit 06f1c7d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
cmake_minimum_required(VERSION 3.14)

# find_package() uses uppercase <PackageName>_ROOT variables.
if(POLICY CMP0144)
cmake_policy(SET CMP0144 NEW)
endif()

project(
snapcast
LANGUAGES CXX
Expand Down
5 changes: 2 additions & 3 deletions server/control_session_http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,10 @@ void ControlSessionHttp::on_read(beast::error_code ec, std::size_t bytes_transfe
return;
}


std::string_view authheader = req_[beast::http::field::authorization];
auto authheader = req_[beast::http::field::authorization];
if (!authheader.empty())
{
auto ec = authinfo.authenticate(std::string(authheader));
auto ec = authinfo.authenticate(std::string{authheader});
if (ec)
{
LOG(ERROR, LOG_TAG) << "Authentication failed: " << ec.detailed_message() << "\n";
Expand Down
3 changes: 0 additions & 3 deletions server/stream_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@

// local headers
#include "common/aixlog.hpp"
#include "common/message/client_info.hpp"
#include "common/message/hello.hpp"
#include "common/message/time.hpp"
#include "config.hpp"
#include "stream_session_tcp.hpp"

Expand Down
1 change: 0 additions & 1 deletion server/stream_session_tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@

// local headers
#include "common/aixlog.hpp"
#include "common/message/pcm_chunk.hpp"

// 3rd party headers

Expand Down

0 comments on commit 06f1c7d

Please sign in to comment.