mirror of
https://github.com/oatpp/oatpp.git
synced 2024-11-27 08:30:07 +08:00
Clear ubuntu warnings WIP
This commit is contained in:
parent
f88d4470e1
commit
9cec285678
1
.gitignore
vendored
1
.gitignore
vendored
@ -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*/
|
||||||
|
@ -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}")
|
||||||
|
@ -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.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user