From c368a2c345afca173e100de25cf04faa95b6a7be Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 22 Jan 2024 10:01:05 +0100 Subject: [PATCH] Cleanup: Strict compiler warning A static function is only used from asserts, generating unused warning for release builds. Pull Request: https://projects.blender.org/blender/blender/pulls/117398 --- source/blender/blenlib/intern/fileops_c.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenlib/intern/fileops_c.cc b/source/blender/blenlib/intern/fileops_c.cc index 27ab1f3560e..0af70d107ac 100644 --- a/source/blender/blenlib/intern/fileops_c.cc +++ b/source/blender/blenlib/intern/fileops_c.cc @@ -857,7 +857,7 @@ enum { typedef int (*RecursiveOp_Callback)(const char *from, const char *to); -static bool path_has_trailing_slash(const char *path) +[[maybe_unused]] static bool path_has_trailing_slash(const char *path) { const int path_len = strlen(path); if (path_len == 0) {