Fix unused parameters and variables
llvm-svn: 290459
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: fd838227411f3ce1fa348f1d334266231bbcc84d
diff --git a/include/experimental/filesystem b/include/experimental/filesystem
index 410235f..739918b 100644
--- a/include/experimental/filesystem
+++ b/include/experimental/filesystem
@@ -1218,14 +1218,18 @@
template <class... _Args>
_LIBCPP_NORETURN inline _LIBCPP_ALWAYS_INLINE
+#ifndef _LIBCPP_NO_EXCEPTIONS
void __throw_filesystem_error(_Args && ...__args)
{
-#ifndef _LIBCPP_NO_EXCEPTIONS
throw filesystem_error(std::forward<_Args>(__args)...);
-#else
- _VSTD::abort();
-#endif
}
+#else
+void __throw_filesystem_error(_Args&&...)
+{
+ _VSTD::abort();
+}
+#endif
+
// operational functions