susumu.yata
null+****@clear*****
Wed Sep 10 11:53:31 JST 2014
susumu.yata 2014-09-10 11:53:31 +0900 (Wed, 10 Sep 2014) New Revision: 2d08b2ddbb4b55b5f580805431af9d28f8bdbbc3 https://github.com/groonga/grnxx/commit/2d08b2ddbb4b55b5f580805431af9d28f8bdbbc3 Message: Suppress warnings for unused arguments in index.cpp. Modified files: lib/grnxx/index.cpp Modified: lib/grnxx/index.cpp (+6 -6) =================================================================== --- lib/grnxx/index.cpp 2014-09-10 11:52:12 +0900 (d9d6225) +++ lib/grnxx/index.cpp 2014-09-10 11:53:31 +0900 (3efda5d) @@ -15,8 +15,8 @@ Index::~Index() {} unique_ptr<Cursor> Index::create_cursor( Error *error, - const IndexRange &range, - const CursorOptions &options) const { + const IndexRange &, + const CursorOptions &) const { GRNXX_ERROR_SET(error, NOT_SUPPORTED_YET, "Not supoprted yet"); return nullptr; } @@ -30,7 +30,7 @@ bool Index::initialize_base(Error *error, Column *column, String name, IndexType type, - const IndexOptions &options) { + const IndexOptions &) { column_ = column; if (!name_.assign(error, name)) { return false; @@ -181,7 +181,7 @@ TreeIndex<Int>::~TreeIndex() {} unique_ptr<Cursor> TreeIndex<Int>::create_cursor( Error *error, const IndexRange &range, - const CursorOptions &options) const { + const CursorOptions &) const { Int lower_bound_value = numeric_limits<Int>::min(); if (range.has_lower_bound()) { const EndPoint &lower_bound = range.lower_bound(); @@ -232,7 +232,7 @@ unique_ptr<Cursor> TreeIndex<Int>::create_cursor( return cursor; } -bool TreeIndex<Int>::insert(Error *error, Int row_id, const Datum &value) { +bool TreeIndex<Int>::insert(Error *, Int row_id, const Datum &value) { auto result = map_[value.force_int()].insert(row_id); if (!result.second) { // Already exists. @@ -241,7 +241,7 @@ bool TreeIndex<Int>::insert(Error *error, Int row_id, const Datum &value) { return true; } -bool TreeIndex<Int>::remove(Error *error, Int row_id, const Datum &value) { +bool TreeIndex<Int>::remove(Error *, Int row_id, const Datum &value) { auto map_it = map_.find(value.force_int()); if (map_it == map_.end()) { return false; -------------- next part -------------- HTML����������������������������...Télécharger