Resolved compiler warnings with clang.

This commit is contained in:
Patrick Lühne 2017-05-09 13:00:44 +02:00
parent 33e61beb4f
commit 9c9995380e
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
4 changed files with 2 additions and 23 deletions

View File

@ -24,8 +24,6 @@ class Logger
explicit Logger(); explicit Logger();
explicit Logger(ColorStream &&outputStream); explicit Logger(ColorStream &&outputStream);
explicit Logger(ColorStream &&outputStream, ColorStream &&errorStream); explicit Logger(ColorStream &&outputStream, ColorStream &&errorStream);
Logger(Logger &&other);
Logger &operator=(Logger &&other);
ColorStream &outputStream(); ColorStream &outputStream();
ColorStream &errorStream(); ColorStream &errorStream();

View File

@ -57,7 +57,7 @@ class QuantifiedCRTP: public Quantified
ExpressionPointer simplified() override; ExpressionPointer simplified() override;
ExpressionPointer decomposed(DerivedPredicates &derivedPredicates) override; ExpressionPointer decomposed(DerivedPredicates &derivedPredicates) override;
void collectParameters(std::set<VariablePointer> &parameters); void collectParameters(std::set<VariablePointer> &parameters) override;
void print(std::ostream &ostream) const override; void print(std::ostream &ostream) const override;
}; };

View File

@ -64,25 +64,6 @@ Logger::Logger(ColorStream &&outputStream, ColorStream &&errorStream)
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
Logger::Logger(Logger &&other)
: m_outputStream{std::move(other.m_outputStream)},
m_errorStream{std::move(other.m_errorStream)},
m_logPriority{other.m_logPriority},
m_abortPriority{other.m_abortPriority}
{
}
////////////////////////////////////////////////////////////////////////////////////////////////////
Logger &Logger::operator=(Logger &&other)
{
*this = std::move(other);
return *this;
}
////////////////////////////////////////////////////////////////////////////////////////////////////
ColorStream &Logger::outputStream() ColorStream &Logger::outputStream()
{ {
return m_outputStream; return m_outputStream;

View File

@ -63,7 +63,7 @@ ExpressionPointer Expression::simplified()
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
[[ noreturn ]] ExpressionPointer Expression::decomposed(expressions::DerivedPredicates &) ExpressionPointer Expression::decomposed(expressions::DerivedPredicates &)
{ {
throw output::TranslatorException("expression cannot be decomposed (not normalized)"); throw output::TranslatorException("expression cannot be decomposed (not normalized)");
} }