epoll_wakeup_test.c: In function 'epoll59':
  epoll_wakeup_test.c:3121:23: warning: unused variable 'pfd' 
[-Wunused-variable]
   3121 |         struct pollfd pfd;
        |                       ^~~

Remove unused 'struct pollfd pfd' to fix -Wunused-variable warning.

https://virtuozzo.atlassian.net/browse/VSTOR-127529
Signed-off-by: Konstantin Khorenko <[email protected]>

Feature: fix selftests
---
 tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c 
b/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
index 65ede506305c..92adad836b57 100644
--- a/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
+++ b/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
@@ -3118,7 +3118,6 @@ static void *epoll59_thread(void *ctx_)
 TEST(epoll59)
 {
        pthread_t emitter;
-       struct pollfd pfd;
        struct epoll_event e;
        struct epoll_mtcontext ctx = { 0 };
        int i, ret;
-- 
2.47.1

_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to