diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index a70d467..56b2f71 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -4258,6 +4258,7 @@ GHC_INLINE space_info space(const path& p, std::error_code& ec) noexcept } return {static_cast(sfs.f_blocks * sfs.f_frsize), static_cast(sfs.f_bfree * sfs.f_frsize), static_cast(sfs.f_bavail * sfs.f_frsize)}; #else + (void)p; ec = detail::make_error_code(detail::portable_error::not_supported); return {static_cast(-1), static_cast(-1), static_cast(-1)}; #endif