aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/cxxsupp/libcxxcuda11/patches/50-operations.patch
blob: f547910f57bb791c819c9ef4f1e58ca2486b575c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/src/filesystem/path_parser.h b/src/filesystem/path_parser.h
index c6e63e8..630391f 100644
--- a/src/filesystem/path_parser.h
+++ b/src/filesystem/path_parser.h
@@ -337,15 +337,19 @@ private:
       return consumeNSeparators(consumeName(P, End), End, 2);
   }
 
-  PosPtr consumeRootName(PosPtr P, PosPtr End) const noexcept {
 #if defined(_LIBCPP_WIN32API)
+  PosPtr consumeRootName(PosPtr P, PosPtr End) const noexcept {
     if (PosPtr Ret = consumeDriveLetter(P, End))
       return Ret;
     if (PosPtr Ret = consumeNetworkRoot(P, End))
       return Ret;
-#endif
     return nullptr;
   }
+#else
+  PosPtr consumeRootName(PosPtr /*P*/, PosPtr /*End*/) const noexcept {
+    return nullptr;
+  }
+#endif
 };
 
 inline string_view_pair separate_filename(string_view_t const& s) {