fix warning of unused direct io helper functions

Summary:
add build guard
Closes https://github.com/facebook/rocksdb/pull/1771

Differential Revision: D4410779

Pulled By: siying

fbshipit-source-id: 3796c30
main
Aaron Gao 8 years ago committed by Facebook Github Bot
parent dc2584eea0
commit d4e07a8459
  1. 2
      util/io_posix.cc

@ -50,6 +50,7 @@ int Fadvise(int fd, off_t offset, size_t len, int advice) {
/*
* DirectIOHelper
*/
#ifndef NDEBUG
namespace {
const size_t kSectorSize = 512;
#ifdef OS_LINUX
@ -66,6 +67,7 @@ static bool IsPageAligned(const void* ptr) {
}
}
#endif
/*
* PosixSequentialFile

Loading…
Cancel
Save