Skip to content

Commit a57380d

Browse files
committed
fix(rm): suppress unused parameter warning on non-Unix platforms
Add conditional compilation to discard `parent_dev_id` parameter when not on Unix, preventing compiler warnings since this parameter is unused outside Unix-specific code paths.
1 parent 783015a commit a57380d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/uu/rm/src/rm.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,9 @@ fn remove_dir_recursive_with_metadata(
670670
parent_dev_id: Option<u64>,
671671
metadata: &Metadata,
672672
) -> bool {
673+
#[cfg(not(unix))]
674+
let _ = parent_dev_id;
675+
673676
// Base case 1: this is a file or a symbolic link.
674677
//
675678
// The symbolic link case is important because it could be a link to

0 commit comments

Comments
 (0)