From e27cbeff370897b8450caa204c08049651a10c13 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Fri, 18 Dec 2015 13:29:49 +0100 Subject: Fix warnings when compiling stdlib with --test --- src/libstd/os/raw.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libstd/os') diff --git a/src/libstd/os/raw.rs b/src/libstd/os/raw.rs index 17d6b2605c6..3bc063f4269 100644 --- a/src/libstd/os/raw.rs +++ b/src/libstd/os/raw.rs @@ -88,7 +88,8 @@ mod tests { c_longlong c_ulonglong c_float c_double); } - #[cfg(unix)] + #[cfg(all(unix, not(target_os = "android")))] + #[test] fn unix() { { use os::unix::raw; @@ -101,6 +102,7 @@ mod tests { } #[cfg(windows)] + #[test] fn windows() { use os::windows::raw; } -- cgit 1.4.1-3-g733a5