Fix build for io_uring (#9690)
Summary: Minor fix for build failure: ``` ./env/io_posix.h:68:33: error: unused parameter 'len' [-Werror=unused-parameter] 68 | size_t len, size_t iov_len, bool async_read, | ~~~~~~~^~~ ``` Only happens for release build with io_uring. Pull Request resolved: https://github.com/facebook/rocksdb/pull/9690 Test Plan: build pass with io_uring Reviewed By: akankshamahajan15 Differential Revision: D34846347 Pulled By: jay-zhuang fbshipit-source-id: 2d7afb585097262d7722ef1beac486fc8ef28419
This commit is contained in:
parent
4dff279b19
commit
efd767d14a
3
env/io_posix.h
vendored
3
env/io_posix.h
vendored
@ -97,6 +97,9 @@ inline void UpdateResult(struct io_uring_cqe* cqe, const std::string& file_name,
|
||||
cqe->res);
|
||||
}
|
||||
}
|
||||
#ifdef NDEBUG
|
||||
(void)len;
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user