Fix Clang compiler warnings (-Wnewline-eof)

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
Ferry Huberts 2023-09-02 21:12:50 +02:00
parent aa02f4bb3f
commit 82beea0071
17 changed files with 16 additions and 17 deletions

View File

@ -300,7 +300,6 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compiler_flags(10 "-Wno-gnu-zero-variadic-macro-arguments")
add_compiler_flags(10 "-Wno-implicit-int-conversion")
add_compiler_flags(10 "-Wno-inconsistent-missing-destructor-override")
add_compiler_flags(10 "-Wno-newline-eof")
add_compiler_flags(10 "-Wno-non-virtual-dtor")
add_compiler_flags(10 "-Wno-padded")
add_compiler_flags(10 "-Wno-pessimizing-move")

View File

@ -70,4 +70,4 @@
#undef OATPP_ENUM_MACRO_1
#undef ENUM
#undef ENUM

View File

@ -142,4 +142,4 @@ void ConditionVariable::notifyAll() {
m_list.notifyAll();
}
}}
}}

View File

@ -97,4 +97,4 @@ CoroutineWaitList& CoroutineWaitList::operator=(CoroutineWaitList&& other) {
}
}}
}}

View File

@ -30,4 +30,4 @@ Error::Error(const std::string& what)
: runtime_error(what)
{}
}}
}}

View File

@ -172,4 +172,4 @@ void IOWorker::detach() {
m_thread.detach();
}
}}}
}}}

View File

@ -136,4 +136,4 @@ void TimerWorker::detach() {
m_thread.detach();
}
}}}
}}}

View File

@ -54,4 +54,4 @@ Worker::Type Worker::getType() {
return m_type;
}
}}}
}}}

View File

@ -42,4 +42,4 @@ oatpp::String ObjectMapper::writeToString(const type::Void& variant) const {
return stream.toString();
}
}}}
}}}

View File

@ -30,4 +30,4 @@ namespace __class {
const ClassId AbstractUnorderedSet::CLASS_ID("UnorderedSet");
}
}}}}
}}}}

View File

@ -30,4 +30,4 @@ namespace __class {
const ClassId AbstractVector::CLASS_ID("Vector");
}
}}}}
}}}}

View File

@ -45,4 +45,4 @@ v_buff_size ParsingError::getPosition() const {
return m_position;
}
}}
}}

View File

@ -38,4 +38,4 @@ v_int64 Binary::nextP2(v_int64 v) {
return v;
}
}}
}}

View File

@ -68,4 +68,4 @@ std::shared_ptr<Deserializer> ObjectMapper::getDeserializer() {
return m_deserializer;
}
}}}}
}}}}

View File

@ -212,4 +212,4 @@ RequestExecutor::executeAsync(
}
}}}
}}}

View File

@ -51,4 +51,4 @@ std::shared_ptr<EncoderProvider> ProviderCollection::get(const std::unordered_se
}
}}}}}
}}}}}

View File

@ -162,4 +162,4 @@ async::CoroutineStarterForResult<const oatpp::String&> Request::readBodyToString
return m_bodyDecoder->decodeToStringAsync(m_headers, m_bodyStream, m_connection);
}
}}}}}
}}}}}