Clear ubuntu warnings WIP

This commit is contained in:
Leonid Stryzhevskyi 2024-05-15 02:41:15 +03:00
parent f88d4470e1
commit 9cec285678
4 changed files with 9 additions and 6 deletions

1
.gitignore vendored
View File

@ -39,6 +39,7 @@
.idea/ .idea/
cmake-build-debug/ cmake-build-debug/
cmake-build-debug-visual-studio/ cmake-build-debug-visual-studio/
cmake-build-debug-wsl/
# local build # local build
build*/ build*/

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.25 FATAL_ERROR) cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/src/oatpp/Environment.hpp" OATPP_VERSION_MACRO REGEX "#define OATPP_VERSION \"[0-9]+.[0-9]+.[0-9]+\"$") file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/src/oatpp/Environment.hpp" OATPP_VERSION_MACRO REGEX "#define OATPP_VERSION \"[0-9]+.[0-9]+.[0-9]+\"$")
string(REGEX REPLACE "#define OATPP_VERSION \"([0-9]+.[0-9]+.[0-9]+)\"$" "\\1" oatpp_VERSION "${OATPP_VERSION_MACRO}") string(REGEX REPLACE "#define OATPP_VERSION \"([0-9]+.[0-9]+.[0-9]+)\"$" "\\1" oatpp_VERSION "${OATPP_VERSION_MACRO}")

View File

@ -166,7 +166,9 @@ void IOEventWorker::waitEvents() {
"foreman={}\n" "foreman={}\n"
"this={}\n" "this={}\n"
"specialization={}", "specialization={}",
errno, m_inEventsCount, reinterpret_cast<v_buff_usize>(m_foreman), reinterpret_cast<v_buff_usize>(this), m_specialization) errno, m_inEventsCount,
reinterpret_cast<v_buff_usize>(m_foreman), reinterpret_cast<v_buff_usize>(this),
m_specialization)
throw std::runtime_error("[oatpp::async::worker::IOEventWorker::waitEvents()]: Error. Event loop failed."); throw std::runtime_error("[oatpp::async::worker::IOEventWorker::waitEvents()]: Error. Event loop failed.");
} }

View File

@ -95,14 +95,14 @@ LogMessage& LogMessage::operator << (bool value) {
LogMessage& LogMessage::operator << (int value) { LogMessage& LogMessage::operator << (int value) {
if(writeNextChunk()) { if(writeNextChunk()) {
m_stream.writeAsString(static_cast<v_int32>(value)); m_stream.writeAsString(value);
} }
return *this; return *this;
} }
LogMessage& LogMessage::operator << (unsigned value) { LogMessage& LogMessage::operator << (unsigned value) {
if(writeNextChunk()) { if(writeNextChunk()) {
m_stream.writeAsString(static_cast<v_uint32>(value)); m_stream.writeAsString(value);
} }
return *this; return *this;
} }
@ -137,14 +137,14 @@ LogMessage& LogMessage::operator << (unsigned long long value) {
LogMessage& LogMessage::operator << (float value) { LogMessage& LogMessage::operator << (float value) {
if(writeNextChunk()) { if(writeNextChunk()) {
m_stream.writeAsString(static_cast<v_float32>(value)); m_stream.writeAsString(value);
} }
return *this; return *this;
} }
LogMessage& LogMessage::operator << (double value) { LogMessage& LogMessage::operator << (double value) {
if(writeNextChunk()) { if(writeNextChunk()) {
m_stream.writeAsString(static_cast<v_float64>(value)); m_stream.writeAsString(value);
} }
return *this; return *this;
} }