Skip to content

Commit 9e3f087

Browse files
jrodal98facebook-github-bot
authored andcommitted
fix broken OSS buck test
Summary: Buck windows CI doesn't like the unused variable ``` error: unused variable: `executable` --> app\buck2_core\src\fs\fs_util.rs:473:51 | 473 | pub fn set_executable<P: AsRef<AbsPath>>(path: P, executable: bool) -> buck2_error::Result<()> { | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_executable` | = note: requested on the command line with `-D unused-variables` error: could not compile `buck2_core` (lib) due to 1 previous error ``` https://github.com/facebook/buck2/actions/runs/15495890581/job/43632406472 Created from CodeHub with https://fburl.com/edit-in-codehub Reviewed By: anaypaul Differential Revision: D76143882 fbshipit-source-id: 2fcc5153ba40fb5e4eb1316ef6faba02d91a1f1b
1 parent 5fba51b commit 9e3f087

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/buck2_core/src/fs/fs_util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -492,6 +492,7 @@ pub fn set_executable<P: AsRef<AbsPath>>(path: P, executable: bool) -> buck2_err
492492
{
493493
// Nothing to do
494494
let _ignore = path;
495+
let _ignore_executable = executable;
495496
}
496497

497498
Ok(())

0 commit comments

Comments
 (0)