clean unused parameter warnings
This commit is contained in:
parent
ab344b692f
commit
618652c987
@ -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)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 == ".";
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 "";
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}}}
|
||||
};
|
Loading…
Reference in New Issue
Block a user