From 98be556143db65985058bab922f45314ae18f429 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 25 Feb 2017 12:18:57 +0800 Subject: [PATCH] drtioaux: fix compiler warnings --- artiq/firmware/libdrtioaux/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/firmware/libdrtioaux/lib.rs b/artiq/firmware/libdrtioaux/lib.rs index 6daa6f802..4cdf0416c 100644 --- a/artiq/firmware/libdrtioaux/lib.rs +++ b/artiq/firmware/libdrtioaux/lib.rs @@ -8,9 +8,11 @@ extern crate board; extern crate byteorder; mod proto; +#[cfg(has_drtio)] mod crc32; use std::io::{self, Read, Write}; +#[cfg(has_drtio)] use core::slice; use proto::*;