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
This commit is contained in:
Sergey Sharybin 2024-01-22 10:01:05 +01:00 committed by Sergey Sharybin
parent a1761b7c8c
commit c368a2c345

View file

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