We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6453fd2 commit 9c62079Copy full SHA for 9c62079
1 file changed
extension/data_loader/mman.h
@@ -50,8 +50,7 @@ ET_INLINE off_t get_mmap_offset(size_t offset) {
50
* when the caller does not want to mlock the pages into RAM.
51
*
52
* 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.
+ * Hexagon DSP toolchain).
55
*/
56
ET_INLINE void madvise_pages_willneed_sequential(void* addr, size_t len) {
57
#ifdef MADV_WILLNEED
@@ -60,8 +59,6 @@ ET_INLINE void madvise_pages_willneed_sequential(void* addr, size_t len) {
60
59
#ifdef MADV_SEQUENTIAL
61
::madvise(addr, len, MADV_SEQUENTIAL);
62
#endif
63
- (void)addr;
64
- (void)len;
65
}
66
67
/**
0 commit comments