mirror of
https://github.com/openharmony/third_party_liburing.git
synced 2026-07-20 22:58:41 -04:00
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: ad543701a8 ("Add test case for -EFAULT triggered by iov reuse")
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user