diff mbox series

[03/17] rt-tests: ssdd: Suppress unused parameters warning

Message ID 20231006184011.26699-3-jkacur@redhat.com
State New
Headers show
Series [01/17] rt-tests: cyclictest: Remove warnings due different signedness in comparison | expand

Commit Message

John Kacur Oct. 6, 2023, 6:39 p.m. UTC
Suppress unused parameters warning in ssdd with __attribute__ ((unused))

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 src/ssdd/ssdd.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/src/ssdd/ssdd.c b/src/ssdd/ssdd.c
index c5307648a82d..cad901b563d8 100644
--- a/src/ssdd/ssdd.c
+++ b/src/ssdd/ssdd.c
@@ -64,8 +64,6 @@  static const char *get_state_name(int state)
 	return state_name[state];
 }
 
-#define unused __attribute__((unused))
-
 static int quiet;
 static char jsonfile[MAX_PATH];
 
@@ -154,7 +152,7 @@  static pid_t parent;
 static int nforks = 10;
 static int nsteps = 10000;
 
-static void sigchld(int sig, unused siginfo_t *info, unused void *arg)
+static void sigchld(int sig __attribute__ ((unused)), siginfo_t *info __attribute__ ((unused)), void *arg __attribute__ ((unused)))
 {
 	got_sigchld = 1;
 }