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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Suppress unused parameters warning in ssdd with __attribute__ ((unused))

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

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;
 }
-- 
2.40.1





[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux