summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2023-10-06 14:29:46 -0400
committerJohn Kacur <jkacur@redhat.com>2023-10-06 14:29:46 -0400
commit0825359053d30c53358d1dab37cfe7222bcc424b (patch)
tree480632f667072787bf3807649fcfd4195157beee
parent419f86cd4941cf15287e67d534fd04f99b512611 (diff)
downloadrt-tests-0825359053d30c53358d1dab37cfe7222bcc424b.tar.gz
rt-tests: pmqtest: Fix various warnings
Fix unused parameter warnings Fix comparison of integer expressions of different signedness Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--src/pmqtest/pmqtest.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/pmqtest/pmqtest.c b/src/pmqtest/pmqtest.c
index 9e14278..b21dfa0 100644
--- a/src/pmqtest/pmqtest.c
+++ b/src/pmqtest/pmqtest.c
@@ -418,13 +418,14 @@ static void process_options(int argc, char *argv[])
static int volatile shutdown;
-static void sighand(int sig)
+static void sighand(int sig __attribute__ ((unused)))
{
shutdown = 1;
}
-static void print_stat(FILE *fp, struct params *receiver, struct params *sender,
- int verbose, int quiet)
+static void print_stat(FILE *fp __attribute__ ((unused)),
+ struct params *receiver, struct params *sender,
+ int verbose __attribute__ ((unused)), int quiet)
{
int i;
@@ -456,7 +457,7 @@ static void write_stats(FILE *f, void *data)
{
struct params_stats *ps = data;
struct params *s, *r;
- unsigned int i;
+ int i;
fprintf(f, " \"num_threads\": %d,\n", num_threads);
fprintf(f, " \"thread\": {\n");