Remove workaround for GCC <10
Change-Id: I68f7a3b39abb22c2a5bfb146cb2e65f3ee16af40
diff --git a/src/path_parser.hpp b/src/path_parser.hpp
index fca760d..58d174e 100644
--- a/src/path_parser.hpp
+++ b/src/path_parser.hpp
@@ -76,10 +76,8 @@
{
}
- // GCC complains that `end` isn't used when doing completions only
- // FIXME: GCC 10.1 doesn't emit a warning here. Remove [[maybe_unused]] when GCC 10 is available
template <typename It, typename Ctx, typename RCtx, typename Attr>
- bool parse(It& begin, [[maybe_unused]] It end, Ctx const& ctx, RCtx& rctx, Attr& attr) const
+ bool parse(It& begin, It end, Ctx const& ctx, RCtx& rctx, Attr& attr) const
{
std::string tableName;
if constexpr (std::is_same<attribute_type, schemaNode_>()) {
@@ -165,12 +163,7 @@
if constexpr (PARSER_MODE == NodeParserMode::CompletionsOnly) {
return true;
} else {
- It saveIter;
- // GCC complains that I assign saveIter because I use it only if NodeType is dataNode_
- // FIXME: GCC 10.1 doesn't emit a warning here. Make this unconditional when GCC 10 is available.
- if constexpr (std::is_same<attribute_type, dataNode_>()) {
- saveIter = begin;
- }
+ It saveIter = begin;
auto res = table.parse(begin, end, ctx, rctx, attr);