From 450f4f31c5afe4516a5db5fc071aa012dfb64202 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Mon, 23 Dec 2013 14:57:14 +0100 Subject: tests: Remove unused variable warning The variables were unused if SIOCGPGRP wasn't defined. --- tests/test_ioctl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/test_ioctl.c b/tests/test_ioctl.c index 0c9bfc6..d365641 100644 --- a/tests/test_ioctl.c +++ b/tests/test_ioctl.c @@ -69,8 +69,10 @@ static void test_swrap_socket(void **state) static void test_swrap_ioctl_sock(void **state) { int fd; +#ifdef SIOCGPGRP int rc; int grp = -127; +#endif (void) state; /* unused */ -- cgit