From 2013d901b2bff1167ca3306994d73748aabac7df Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Tue, 30 Dec 2025 18:59:33 +0300 Subject: [PATCH] Avoid signed/unsigned mismatch warning on DragonflyBSD. For some reason, AT_FDCWD is defined as unsigned int on DragonflyBSD, which causes warnings when int fds are compared against it. --- src/operations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations.cpp b/src/operations.cpp index e299e7a..a8dabf5 100644 --- a/src/operations.cpp +++ b/src/operations.cpp @@ -1122,7 +1122,7 @@ uintmax_t remove_all_impl #if defined(BOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW) && defined(BOOST_FILESYSTEM_HAS_POSIX_AT_APIS) fs::path filename; const fs::path* remove_path = &p; - if (parentdir_fd != AT_FDCWD) + if (parentdir_fd != static_cast< int >(AT_FDCWD)) { filename = path_algorithms::filename_v4(p); remove_path = &filename;