diff mbox series

[09/17] rt-tests: rt-migrate-test: Fix some warnings

Message ID 20231006184011.26699-9-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:40 p.m. UTC
- Use attribute unused where appropriate
- Change unsigned int to int for comparision

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 src/rt-migrate-test/rt-migrate-test.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/src/rt-migrate-test/rt-migrate-test.c b/src/rt-migrate-test/rt-migrate-test.c
index 883e60e21bff..7b1917df12a3 100644
--- a/src/rt-migrate-test/rt-migrate-test.c
+++ b/src/rt-migrate-test/rt-migrate-test.c
@@ -44,7 +44,7 @@  static void setup_ftrace_marker(void)
 		"/debugfs/tracing/trace_marker",
 	};
 	int ret;
-	int i;
+	unsigned int i;
 
 	for (i = 0; i < (sizeof(files) / sizeof(char *)); i++) {
 		ret = stat(files[i], &st);
@@ -354,7 +354,7 @@  static void print_results(void)
 	}
 }
 
-static void write_stats(FILE *f, void *data)
+static void write_stats(FILE *f, void *data __attribute__ ((unused)))
 {
 	int i;
 	int t;
@@ -489,7 +489,7 @@  static int check_times(int l)
 	return 0;
 }
 
-static void stop_log(int sig)
+static void stop_log(int sig __attribute__ ((unused)))
 {
 	stop = 1;
 }