From c80a41b730bf98f9c59d291f90189d601742ce79 Mon Sep 17 00:00:00 2001 From: Alex <93446519+AlexOn1ine@users.noreply.github.com> Date: Thu, 21 Aug 2025 17:31:59 +0200 Subject: [PATCH] Suppress trainerproc compile warning for unused func (#7592) --- tools/trainerproc/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/trainerproc/main.c b/tools/trainerproc/main.c index 8547735789..c3a39dc5a1 100644 --- a/tools/trainerproc/main.c +++ b/tools/trainerproc/main.c @@ -178,7 +178,7 @@ static bool is_literal_string(struct String s1, const char *s2) } } -static bool starts_with(struct String s, const char *prefix) +static bool __attribute__((unused)) starts_with(struct String s, const char *prefix) { int n = strlen(prefix); return strncmp((const char *)s.string, prefix, n) == 0;