clean unused parameter warnings

This commit is contained in:
Daniel Sipka 2015-10-10 14:00:45 +02:00
parent ab344b692f
commit 618652c987
6 changed files with 7 additions and 7 deletions

View File

@ -11,7 +11,7 @@ set(CMAKE_BUILD_TYPE Release)
set(mstch_VERSION 0.2.3)
if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -O3")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -O3")
endif()
add_subdirectory(src)

View File

@ -15,7 +15,7 @@ class get_token: public boost::static_visitor<const mstch::node&> {
}
template<class T>
const mstch::node& operator()(const T& t) const {
const mstch::node& operator()(const T&) const {
return node;
}

View File

@ -12,7 +12,7 @@ class has_token: public boost::static_visitor<bool> {
}
template<class T>
bool operator()(const T& t) const {
bool operator()(const T&) const {
return token == ".";
}

View File

@ -9,11 +9,11 @@ namespace mstch {
class is_node_empty: public boost::static_visitor<bool> {
public:
template<class T>
bool operator()(const T& t) const {
bool operator()(const T&) const {
return false;
}
bool operator()(const std::nullptr_t& nul) const {
bool operator()(const std::nullptr_t&) const {
return true;
}

View File

@ -18,7 +18,7 @@ class render_node: public boost::static_visitor<std::string> {
}
template<class T>
std::string operator()(const T& t) const {
std::string operator()(const T&) const {
return "";
}

View File

@ -20,7 +20,7 @@ std::map<std::string,mstch::node> specs_lambdas {
{"Section - Multiple Calls", mstch::lambda{[](const std::string& txt) -> mstch::node {
return "__" + txt + "__";
}}},
{"Inverted Section", mstch::lambda{[](const std::string& txt) -> mstch::node {
{"Inverted Section", mstch::lambda{[](const std::string&) -> mstch::node {
return false;
}}}
};