This is an automated email from the ASF dual-hosted git repository.
acassis pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 442bc1c041 tools/nxstyle.c: fix defined but not used warning
442bc1c041 is described below
commit 442bc1c0411657215e5ee2a3337a4ea563bdb89c
Author: raiden00pl <[email protected]>
AuthorDate: Thu May 22 17:32:52 2025 +0200
tools/nxstyle.c: fix defined but not used warning
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 <[email protected]>
---
tools/nxstyle.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/nxstyle.c b/tools/nxstyle.c
index 0467934c10..0f34fb4881 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