swr: fix unused SplitString warning

Reviewed-by: Jan Zielinski <jan.zielinski@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9502>
This commit is contained in:
Michel Zou 2021-03-10 21:42:25 +01:00 committed by Marge Bot
parent 17441cf92f
commit c58a7c7108
1 changed files with 2 additions and 0 deletions

View File

@ -111,6 +111,7 @@ void SWR_API SetCurrentThreadName(const char* pThreadName)
#endif // Linux
}
#if defined(__APPLE__) || defined(FORCE_LINUX) || defined(__linux__) || defined(__gnu_linux__)
static void
SplitString(std::vector<std::string>& out_segments, const std::string& input, char splitToken)
{
@ -126,6 +127,7 @@ SplitString(std::vector<std::string>& out_segments, const std::string& input, ch
}
}
}
#endif // Unix
void SWR_API CreateDirectoryPath(const std::string& path)
{