Skip to content

Commit 9c62079

Browse files
committed
Removed uneed
1 parent 6453fd2 commit 9c62079

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

extension/data_loader/mman.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ ET_INLINE off_t get_mmap_offset(size_t offset) {
5050
* when the caller does not want to mlock the pages into RAM.
5151
*
5252
* MADV_WILLNEED / MADV_SEQUENTIAL are absent on some POSIX libcs (e.g. the
53-
* Hexagon DSP toolchain), even though <sys/mman.h> is present; guard each
54-
* advice on its macro so the helper degrades to a no-op there.
53+
* Hexagon DSP toolchain).
5554
*/
5655
ET_INLINE void madvise_pages_willneed_sequential(void* addr, size_t len) {
5756
#ifdef MADV_WILLNEED
@@ -60,8 +59,6 @@ ET_INLINE void madvise_pages_willneed_sequential(void* addr, size_t len) {
6059
#ifdef MADV_SEQUENTIAL
6160
::madvise(addr, len, MADV_SEQUENTIAL);
6261
#endif
63-
(void)addr;
64-
(void)len;
6562
}
6663

6764
/**

0 commit comments

Comments
 (0)