Skip to content

Commit

Permalink
Fix an "unused macro" warning on non-Linux platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
asomers committed May 2, 2020
1 parent 609d429 commit 92c5cfe
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ cfg_if! {
}

cfg_if! {
if #[cfg(any(target_os = "android", target_os = "linux"))] {
if #[cfg(target_os = "linux")] {
macro_rules! require_kernel_version {
($name:expr, $version_requirement:expr) => {
use ::std::io::Write;
Expand Down Expand Up @@ -130,10 +130,6 @@ cfg_if! {
}
}
}
} else {
macro_rules! require_kernel_version {
($name:expr) => {}
}
}
}

Expand Down

0 comments on commit 92c5cfe

Please sign in to comment.