diff options
author | Ammar Faizi <ammarfaizi2@gnuweeb.org> | 2022-04-15 04:21:23 +0700 |
---|---|---|
committer | Ammar Faizi <ammarfaizi2@gnuweeb.org> | 2022-04-15 04:24:24 +0700 |
commit | 045b8c5b183859fbc481ec7ab6b818442cc57ab0 (patch) | |
tree | b774081f9fdef3ad4c71bc1426e8bcfb192f0683 | |
parent | 7e3f7d6030fb6ce0872b876147d29fe230e7b2ba (diff) | |
download | liburing-045b8c5b183859fbc481ec7ab6b818442cc57ab0.tar.gz liburing-045b8c5b183859fbc481ec7ab6b818442cc57ab0.tar.bz2 |
test/submit-reuse: Fix `-Wunused-but-set-variable` warning from clang-15
clang-15 correctly warns:
```
submit-reuse.c:29:6: error: variable 'i' set but not used \
[-Werror,-Wunused-but-set-variable]
int i = 0;
^
1 error generated.
make[1]: *** [Makefile:210: submit-reuse.t] Error 1
```
Remove the i variable here, it's not used.
Fixes: ad543701a816d0d84383a8aafb1ce27ee2f93053 ("Add test case for -EFAULT triggered by iov reuse")
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
-rw-r--r-- | test/submit-reuse.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/test/submit-reuse.c b/test/submit-reuse.c index ca30e98..d5ccdd4 100644 --- a/test/submit-reuse.c +++ b/test/submit-reuse.c @@ -26,13 +26,11 @@ struct thread_data { static void *flusher(void *__data) { struct thread_data *data = __data; - int i = 0; while (!data->do_exit) { posix_fadvise(data->fd1, 0, FILE_SIZE, POSIX_FADV_DONTNEED); posix_fadvise(data->fd2, 0, FILE_SIZE, POSIX_FADV_DONTNEED); usleep(10); - i++; } return NULL; |