Skip to content

Commit

Permalink
Fix build for io_uring (facebook#9690)
Browse files Browse the repository at this point in the history
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: facebook#9690

Test Plan: build pass with io_uring

Reviewed By: akankshamahajan15

Differential Revision: D34846347

Pulled By: jay-zhuang

fbshipit-source-id: 2d7afb585097262d7722ef1beac486fc8ef28419
  • Loading branch information
jay-zhuang authored and facebook-github-bot committed Mar 13, 2022
1 parent 4dff279 commit efd767d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions env/io_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit efd767d

Please sign in to comment.