Fixed a compile warning in options_test.cc under clang

Summary:
Fixed the following compile warning in options_test.cc under clang
util/options_test.cc:94:12: error: 'Skip' overrides a member function but is not marked 'override' [-Werror,-Winconsistent-missing-override]
    Status Skip(uint64_t n) {
           ^
./include/rocksdb/env.h:368:18: note: overridden virtual function is here
  virtual Status Skip(uint64_t n) = 0;
                 ^

Test Plan: options_test

Reviewers: igor, sdong, anthony, IslamAbdelRahman

Subscribers: dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D47763
This commit is contained in:
Yueh-Hsuan Chiang 2015-09-29 14:56:54 -07:00
parent 74b100ac17
commit a8b8295d18
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ class StringEnv : public EnvWrapper {
}
return Status::OK();
}
Status Skip(uint64_t n) {
Status Skip(uint64_t n) override {
if (offset_ >= data_.size()) {
return Status::InvalidArgument(
"Attemp to read when it already reached eof.");