Skip to content

Commit 2013d90

Browse files
committed
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.
1 parent 016cafb commit 2013d90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/operations.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ uintmax_t remove_all_impl
11221122
#if defined(BOOST_FILESYSTEM_HAS_FDOPENDIR_NOFOLLOW) && defined(BOOST_FILESYSTEM_HAS_POSIX_AT_APIS)
11231123
fs::path filename;
11241124
const fs::path* remove_path = &p;
1125-
if (parentdir_fd != AT_FDCWD)
1125+
if (parentdir_fd != static_cast< int >(AT_FDCWD))
11261126
{
11271127
filename = path_algorithms::filename_v4(p);
11281128
remove_path = &filename;

0 commit comments

Comments
 (0)