[LTP] [PATCH 1/3] syscalls/signal*: Fix unused parameter compiler warnings
Xiao Yang
yangx.jy@cn.fujitsu.com
Wed Apr 20 11:23:17 CEST 2016
Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
testcases/kernel/syscalls/signal/signal03.c | 2 +-
testcases/kernel/syscalls/signal/signal04.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/kernel/syscalls/signal/signal03.c b/testcases/kernel/syscalls/signal/signal03.c
index c9f8017..7975c77 100644
--- a/testcases/kernel/syscalls/signal/signal03.c
+++ b/testcases/kernel/syscalls/signal/signal03.c
@@ -148,7 +148,7 @@ int main(int ac, char **av)
/*
* sighandler() - the test fails if we ever get here.
*/
-void sighandler(int sig)
+void sighandler(int sig LTP_ATTRIBUTE_UNUSED)
{
fail = 1;
}
diff --git a/testcases/kernel/syscalls/signal/signal04.c b/testcases/kernel/syscalls/signal/signal04.c
index baca161..5a18fa6 100644
--- a/testcases/kernel/syscalls/signal/signal04.c
+++ b/testcases/kernel/syscalls/signal/signal04.c
@@ -158,7 +158,7 @@ int main(int ac, char **av)
/*
* sighandler() - handle the signals
*/
-void sighandler(int sig)
+void sighandler(int sig LTP_ATTRIBUTE_UNUSED)
{
}
--
1.8.3.1
More information about the ltp
mailing list