mirror of https://gitee.com/bigwinds/arangodb
fixing various warnings (#5013)
This commit is contained in:
parent
dd88e3b09a
commit
9980067e73
|
@ -118,9 +118,9 @@ iresearch::index_file_refs::ref_t load_newest_index_meta(
|
|||
break; // try the next codec
|
||||
}
|
||||
|
||||
ref = std::move(iresearch::directory_utils::reference(
|
||||
ref = iresearch::directory_utils::reference(
|
||||
const_cast<iresearch::directory&>(dir), filename
|
||||
));
|
||||
);
|
||||
}
|
||||
|
||||
std::time_t mtime;
|
||||
|
@ -353,4 +353,4 @@ NS_END
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -102,7 +102,7 @@ void index_writer::flush_context::reset() {
|
|||
modification_queries_.clear();
|
||||
pending_segments_.clear();
|
||||
segment_mask_.clear();
|
||||
writers_pool_.visit([this](segment_writer& writer)->bool {
|
||||
writers_pool_.visit([](segment_writer& writer)->bool {
|
||||
writer.reset();
|
||||
return true;
|
||||
});
|
||||
|
@ -1071,4 +1071,4 @@ NS_END
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -1420,4 +1420,4 @@ parser::semantic_type parser_context::try_eval(
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -217,7 +217,7 @@ void order::prepared::scorers::score(
|
|||
size_t i = 0;
|
||||
std::for_each(
|
||||
scorers_.begin(), scorers_.end(),
|
||||
[this, &ord, &scr, &i] (const sort::scorer::ptr& scorer) {
|
||||
[&ord, &scr, &i] (const sort::scorer::ptr& scorer) {
|
||||
if (scorer) scorer->score(scr);
|
||||
const sort::prepared& bucket = *ord[i++].bucket;
|
||||
scr += bucket.size();
|
||||
|
|
|
@ -54,7 +54,7 @@ std::vector<bucket_size_t> compute_bucket_meta() {
|
|||
std::vector<bucket_size_t> bucket_meta(num_buckets);
|
||||
|
||||
if (!num_buckets) {
|
||||
return std::move(bucket_meta);
|
||||
return bucket_meta;
|
||||
}
|
||||
|
||||
bucket_meta[0].size = 1 << skip_bits;
|
||||
|
@ -69,7 +69,7 @@ std::vector<bucket_size_t> compute_bucket_meta() {
|
|||
// all subsequent buckets should have the same meta as the last bucket
|
||||
bucket_meta.back().next = &(bucket_meta.back());
|
||||
|
||||
return std::move(bucket_meta);
|
||||
return bucket_meta;
|
||||
}
|
||||
MSVC_ONLY(__pragma(warning(pop)))
|
||||
|
||||
|
|
|
@ -456,7 +456,7 @@ bool stack_trace_libunwind(iresearch::logger::level_t level); // predeclaration
|
|||
|
||||
auto fn_end = offset_start ? offset_start - 1 : nullptr;
|
||||
auto path_end = fn_start ? fn_start - 1 : (addr_start ? addr_start - 1 : nullptr);
|
||||
bfd_callback_type_t callback = [level, out](const char* file, size_t line, const char* fn)->void {
|
||||
bfd_callback_type_t callback = [out](const char* file, size_t line, const char* fn)->void {
|
||||
UNUSED(fn);
|
||||
|
||||
if (file) {
|
||||
|
@ -808,4 +808,4 @@ NS_END
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -317,7 +317,7 @@ static inline void clearAttributeAccess(
|
|||
Condition::Condition(Ast* ast)
|
||||
: _ast(ast), _root(nullptr), _isNormalized(false), _isSorted(false) {}
|
||||
|
||||
namespace {
|
||||
/*namespace {
|
||||
size_t countNodes(AstNode* node) {
|
||||
if (node == nullptr) {
|
||||
return 0;
|
||||
|
@ -331,7 +331,7 @@ Condition::Condition(Ast* ast)
|
|||
|
||||
return sum;
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
/// @brief destroy the condition
|
||||
Condition::~Condition() {
|
||||
|
|
|
@ -3089,7 +3089,6 @@ void arangodb::aql::collectInClusterRule(Optimizer* opt,
|
|||
for (auto& node : nodes) {
|
||||
// found a node we need to replace in the plan
|
||||
|
||||
auto const& parents = node->getParents();
|
||||
auto const& deps = node->getDependencies();
|
||||
TRI_ASSERT(deps.size() == 1);
|
||||
|
||||
|
|
|
@ -1687,7 +1687,7 @@ NS_BEGIN(iresearch)
|
|||
.field(DocumentPrimaryKey::CID()) // set field
|
||||
.term(DocumentPrimaryKey::encode(cid)); // set value
|
||||
|
||||
return std::move(filter);
|
||||
return filter;
|
||||
}
|
||||
|
||||
/*static*/ irs::filter::ptr FilterFactory::filter(
|
||||
|
@ -1698,7 +1698,7 @@ NS_BEGIN(iresearch)
|
|||
|
||||
FilterFactory::filter(static_cast<irs::And&>(*filter), cid, rid);
|
||||
|
||||
return std::move(filter);
|
||||
return filter;
|
||||
}
|
||||
|
||||
/*static*/ irs::filter& FilterFactory::filter(
|
||||
|
|
|
@ -54,7 +54,7 @@ class IResearchViewCoordinator final: public arangodb::LogicalView {
|
|||
|
||||
void drop() override { }
|
||||
|
||||
virtual Result rename(std::string&& newName, bool doSync) {
|
||||
virtual Result rename(std::string&& newName, bool doSync) override {
|
||||
return { TRI_ERROR_NOT_IMPLEMENTED };
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ class IResearchViewCoordinator final: public arangodb::LogicalView {
|
|||
arangodb::velocypack::Builder& result,
|
||||
bool includeProperties = false,
|
||||
bool includeSystem = false
|
||||
) const {
|
||||
) const override {
|
||||
// FIXME: implement
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ class IResearchViewCoordinator final: public arangodb::LogicalView {
|
|||
arangodb::velocypack::Slice const& properties,
|
||||
bool partialUpdate,
|
||||
bool doSync
|
||||
) {
|
||||
) override {
|
||||
return { TRI_ERROR_NOT_IMPLEMENTED };
|
||||
}
|
||||
}; // IResearchViewCoordinator
|
||||
|
|
|
@ -63,12 +63,12 @@ class FakeResponse : public GeneralResponse {
|
|||
|
||||
void addPayload(VPackSlice const&,
|
||||
arangodb::velocypack::Options const* = nullptr,
|
||||
bool resolveExternals = true) {
|
||||
bool resolveExternals = true) override {
|
||||
// TODO
|
||||
};
|
||||
void addPayload(VPackBuffer<uint8_t>&&,
|
||||
arangodb::velocypack::Options const* = nullptr,
|
||||
bool resolveExternals = true) {
|
||||
bool resolveExternals = true) override {
|
||||
// TODO
|
||||
};
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ std::unique_ptr<arangodb::LogicalView> makeTestView(
|
|||
) const override {
|
||||
}
|
||||
virtual void open() override {}
|
||||
virtual arangodb::Result rename(std::string&& newName, bool doSync) {
|
||||
virtual arangodb::Result rename(std::string&& newName, bool doSync) override {
|
||||
return {};
|
||||
}
|
||||
virtual arangodb::Result updateProperties(
|
||||
|
|
|
@ -57,7 +57,7 @@ std::unique_ptr<arangodb::LogicalView> makeTestView(
|
|||
) const override {
|
||||
}
|
||||
virtual void open() override {}
|
||||
virtual arangodb::Result rename(std::string&& newName, bool doSync) {
|
||||
virtual arangodb::Result rename(std::string&& newName, bool doSync) override {
|
||||
return {};
|
||||
}
|
||||
virtual arangodb::Result updateProperties(
|
||||
|
|
Loading…
Reference in New Issue