Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cp: restrict two test functions to linux/mac/win #5471

Merged

Conversation

cakebaker
Copy link
Contributor

This PR restricts two test functions to avoid the following "unused variable" warnings on FreeBSD:

warning: unused variable: `stdout_str`
      --> tests/by-util/test_cp.rs:3225:9
       |
  3225 |     let stdout_str = result.stdout_str();
       |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout_str`
       |
       = note: `#[warn(unused_variables)]` on by default
  
  warning: unused variable: `stdout_str`
      --> tests/by-util/test_cp.rs:3261:9
       |
  3261 |     let stdout_str = result.stdout_str();
       |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_stdout_str`
  

@tertsdiepraam tertsdiepraam merged commit 98ad01b into uutils:main Nov 1, 2023
@cakebaker cakebaker deleted the cp_fix_unused_variable_warnings branch November 1, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants