[Devel] [PATCH vz10 04/15] selftests/epoll: remove unused variable 'pfd' in epoll59 test

Konstantin Khorenko khorenko at virtuozzo.com
Mon Mar 23 23:31:23 MSK 2026


  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 <khorenko at virtuozzo.com>

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



More information about the Devel mailing list