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) {