Added -Wextra flag to notice warnings more easily.

This commit is contained in:
Patrick Lühne 2016-12-08 01:17:09 +01:00
parent a5f1ebdc09
commit f4672a5b50
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ option(PLASP_BUILD_TESTS "Build unit tests" OFF)
find_package(Boost 1.55.0 COMPONENTS program_options iostreams system filesystem REQUIRED)
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Wpedantic -Werror")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_STANDARD 14)

View File

@ -94,7 +94,7 @@ inline void translateLiteral(output::ColorStream &outputStream, const Expression
}
else if (literal.is<expressions::DerivedPredicate>())
{
const auto &derivedPredicate = literal.as<expressions::DerivedPredicate>();
//const auto &derivedPredicate = literal.as<expressions::DerivedPredicate>();
/*m_outputStream << output::Keyword("variable") << "(";
translation::translatePredicate(predicate);