diff --git a/include/ghc/filesystem.hpp b/include/ghc/filesystem.hpp index d0e019b..eaa82c2 100644 --- a/include/ghc/filesystem.hpp +++ b/include/ghc/filesystem.hpp @@ -1756,7 +1756,7 @@ GHC_INLINE uintmax_t hard_links_from_INFO(const BY_H } template -GHC_INLINE file_status status_from_INFO(const path& p, const INFO* info, std::error_code& ec, uintmax_t* sz = nullptr, time_t* lwt = nullptr) noexcept +GHC_INLINE file_status status_from_INFO(const path& p, const INFO* info, std::error_code&, uintmax_t* sz = nullptr, time_t* lwt = nullptr) noexcept { file_type ft = file_type::unknown; if ((info->dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)) { @@ -4176,9 +4176,9 @@ GHC_INLINE space_info space(const path& p, std::error_code& ec) noexcept { ec.clear(); #ifdef GHC_OS_WINDOWS - ULARGE_INTEGER freeBytesAvailableToCaller = {0}; - ULARGE_INTEGER totalNumberOfBytes = {0}; - ULARGE_INTEGER totalNumberOfFreeBytes = {0}; + ULARGE_INTEGER freeBytesAvailableToCaller = {0, 0}; + ULARGE_INTEGER totalNumberOfBytes = {0, 0}; + ULARGE_INTEGER totalNumberOfFreeBytes = {0, 0}; if (!GetDiskFreeSpaceExW(detail::fromUtf8(p.u8string()).c_str(), &freeBytesAvailableToCaller, &totalNumberOfBytes, &totalNumberOfFreeBytes)) { ec = std::error_code(::GetLastError(), std::system_category()); return {static_cast(-1), static_cast(-1), static_cast(-1)}; @@ -4681,7 +4681,6 @@ public: impl(const path& p, directory_options options) : _base(p) , _options(options) - , _findData{0} , _dirHandle(INVALID_HANDLE_VALUE) { if (!_base.empty()) {