Skip to content

Commit 1f09776

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 2fefe61 commit 1f09776

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/uu/rm/src/rm.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,9 @@ fn remove_dir_recursive_with_metadata(
680680
parent_dev_id: Option<u64>,
681681
metadata: &Metadata,
682682
) -> bool {
683+
#[cfg(not(unix))]
684+
let _ = parent_dev_id;
685+
683686
// Base case 1: this is a file or a symbolic link.
684687
//
685688
// The symbolic link case is important because it could be a link to

0 commit comments

Comments
 (0)