From 442bc1c0411657215e5ee2a3337a4ea563bdb89c Mon Sep 17 00:00:00 2001 From: raiden00pl Date: Thu, 22 May 2025 17:32:52 +0200 Subject: [PATCH] tools/nxstyle.c: fix defined but not used warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix defined but not used warning from CI: Warning: nxstyle.c:767:13: warning: ‘backslash_to_slash’ defined but not used [-Wunused-function] 767 | static void backslash_to_slash(char *str) Signed-off-by: raiden00pl --- tools/nxstyle.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/nxstyle.c b/tools/nxstyle.c index 0467934c103..0f34fb48817 100644 --- a/tools/nxstyle.c +++ b/tools/nxstyle.c @@ -756,6 +756,7 @@ char *my_strndup(const char *s, size_t size) # define strndup my_strndup #endif +#ifdef CONFIG_WINDOWS_NATIVE /******************************************************************************** * Name: backslash_to_slash * @@ -781,6 +782,7 @@ static void backslash_to_slash(char *str) } } } +#endif /******************************************************************************** * Name: skip