mirror of
https://github.com/oatpp/oatpp.git
synced 2024-11-21 03:14:51 +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/
|
||||
cmake-build-debug/
|
||||
cmake-build-debug-visual-studio/
|
||||
cmake-build-debug-wsl/
|
||||
|
||||
# local 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]+\"$")
|
||||
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"
|
||||
"this={}\n"
|
||||
"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.");
|
||||
}
|
||||
|
||||
|
@ -95,14 +95,14 @@ LogMessage& LogMessage::operator << (bool value) {
|
||||
|
||||
LogMessage& LogMessage::operator << (int value) {
|
||||
if(writeNextChunk()) {
|
||||
m_stream.writeAsString(static_cast<v_int32>(value));
|
||||
m_stream.writeAsString(value);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
LogMessage& LogMessage::operator << (unsigned value) {
|
||||
if(writeNextChunk()) {
|
||||
m_stream.writeAsString(static_cast<v_uint32>(value));
|
||||
m_stream.writeAsString(value);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
@ -137,14 +137,14 @@ LogMessage& LogMessage::operator << (unsigned long long value) {
|
||||
|
||||
LogMessage& LogMessage::operator << (float value) {
|
||||
if(writeNextChunk()) {
|
||||
m_stream.writeAsString(static_cast<v_float32>(value));
|
||||
m_stream.writeAsString(value);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
||||
LogMessage& LogMessage::operator << (double value) {
|
||||
if(writeNextChunk()) {
|
||||
m_stream.writeAsString(static_cast<v_float64>(value));
|
||||
m_stream.writeAsString(value);
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user