Module: Mesa
Branch: master
Commit: c58a7c71088cad3045b0dbe472e180ae60f4d818
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c58a7c71088cad3045b0dbe472e180ae60f4d818

Author: Michel Zou <[email protected]>
Date:   Wed Mar 10 21:42:25 2021 +0100

swr: fix unused SplitString warning

Reviewed-by: Jan Zielinski <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9502>

---

 src/gallium/drivers/swr/rasterizer/common/os.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/swr/rasterizer/common/os.cpp 
b/src/gallium/drivers/swr/rasterizer/common/os.cpp
index a40745f30fc..75c7161b4e2 100644
--- a/src/gallium/drivers/swr/rasterizer/common/os.cpp
+++ b/src/gallium/drivers/swr/rasterizer/common/os.cpp
@@ -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)
 {

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to