Skip to content

Commit 69226a7

Browse files
committed
cpu/arm: allow dead code in cpu/arm mod when building on non-arm
Other architectures may not need to do feature checks, and therefore Feature::available, Feature::mask, etc are never used/read. This snippet mirrors the similar bit at the top of cpu/intel. Signed-off-by: Eric Richter <erichte@linux.ibm.com>
1 parent 61dc195 commit 69226a7

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/cpu/arm.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
// OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
1313
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1414

15+
#![cfg_attr(
16+
not(any(target_arch = "aarch64", target_arch = "arm")),
17+
allow(dead_code)
18+
)]
19+
1520
#[cfg(all(
1621
any(target_os = "android", target_os = "linux"),
1722
any(target_arch = "aarch64", target_arch = "arm")

0 commit comments

Comments
 (0)