From d4e07a8459dc16c3c397f7794818f62b4d23ac57 Mon Sep 17 00:00:00 2001 From: Aaron Gao Date: Thu, 12 Jan 2017 12:26:39 -0800 Subject: [PATCH] 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 --- util/io_posix.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/io_posix.cc b/util/io_posix.cc index eb8287708..021ea71cf 100644 --- a/util/io_posix.cc +++ b/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