Remove unused includes, fix warnings

This commit is contained in:
badaix 2024-12-19 23:37:44 +01:00
parent a79b3e6599
commit 06f1c7d32f
4 changed files with 7 additions and 7 deletions

View file

@ -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

View file

@ -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";

View file

@ -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"

View file

@ -21,7 +21,6 @@
// local headers
#include "common/aixlog.hpp"
#include "common/message/pcm_chunk.hpp"
// 3rd party headers