CI: cleanup build warnings

Tests: fixed "unused const variable" warning
CMakeLists.txt: fixed deprecation warnings
This commit is contained in:
SChernykh
2023-08-16 13:00:11 +02:00
parent 741bec9874
commit 76c4573c39
31 changed files with 89 additions and 64 deletions

View File

@@ -28,7 +28,7 @@
#include "p2pool_api.h"
#include "params.h"
static constexpr char log_category_prefix[] = "ConsoleCommands ";
LOG_CATEGORY(ConsoleCommands)
static constexpr int DEFAULT_BACKLOG = 1;
@@ -123,6 +123,11 @@ void ConsoleCommands::on_shutdown()
uv_close(reinterpret_cast<uv_handle_t*>(m_stdin_handle), nullptr);
}
const char* ConsoleCommands::get_log_category() const
{
return log_category_prefix;
}
typedef struct strconst {
const char *str;
size_t len;