clean unused parameter warnings
This commit is contained in:
parent
ab344b692f
commit
618652c987
6 changed files with 7 additions and 7 deletions
|
@ -11,7 +11,7 @@ set(CMAKE_BUILD_TYPE Release)
|
||||||
set(mstch_VERSION 0.2.3)
|
set(mstch_VERSION 0.2.3)
|
||||||
|
|
||||||
if(NOT MSVC)
|
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()
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
|
@ -15,7 +15,7 @@ class get_token: public boost::static_visitor<const mstch::node&> {
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
const mstch::node& operator()(const T& t) const {
|
const mstch::node& operator()(const T&) const {
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ class has_token: public boost::static_visitor<bool> {
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
bool operator()(const T& t) const {
|
bool operator()(const T&) const {
|
||||||
return token == ".";
|
return token == ".";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,11 +9,11 @@ namespace mstch {
|
||||||
class is_node_empty: public boost::static_visitor<bool> {
|
class is_node_empty: public boost::static_visitor<bool> {
|
||||||
public:
|
public:
|
||||||
template<class T>
|
template<class T>
|
||||||
bool operator()(const T& t) const {
|
bool operator()(const T&) const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool operator()(const std::nullptr_t& nul) const {
|
bool operator()(const std::nullptr_t&) const {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ class render_node: public boost::static_visitor<std::string> {
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
std::string operator()(const T& t) const {
|
std::string operator()(const T&) const {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ std::map<std::string,mstch::node> specs_lambdas {
|
||||||
{"Section - Multiple Calls", mstch::lambda{[](const std::string& txt) -> mstch::node {
|
{"Section - Multiple Calls", mstch::lambda{[](const std::string& txt) -> mstch::node {
|
||||||
return "__" + txt + "__";
|
return "__" + txt + "__";
|
||||||
}}},
|
}}},
|
||||||
{"Inverted Section", mstch::lambda{[](const std::string& txt) -> mstch::node {
|
{"Inverted Section", mstch::lambda{[](const std::string&) -> mstch::node {
|
||||||
return false;
|
return false;
|
||||||
}}}
|
}}}
|
||||||
};
|
};
|
Loading…
Add table
Reference in a new issue