From e0a20b5568ff364cd5b48b15713eb11a253bd975 Mon Sep 17 00:00:00 2001 From: UK992 Date: Mon, 6 Feb 2017 00:12:51 +0100 Subject: [PATCH] Silent Windows specific warnings --- components/constellation/pipeline.rs | 1 + components/gfx/lib.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/components/constellation/pipeline.rs b/components/constellation/pipeline.rs index e8a6ab3c05b..0f5ee424df4 100644 --- a/components/constellation/pipeline.rs +++ b/components/constellation/pipeline.rs @@ -28,6 +28,7 @@ use servo_config::opts::{self, Opts}; use servo_config::prefs::{PREFS, Pref}; use servo_url::ServoUrl; use std::collections::HashMap; +#[cfg(not(windows))] use std::env; use std::ffi::OsStr; use std::io::Error as IOError; diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs index e314b7b8f39..fb94e7b779f 100644 --- a/components/gfx/lib.rs +++ b/components/gfx/lib.rs @@ -4,7 +4,7 @@ // For SIMD #![feature(cfg_target_feature)] -#![cfg_attr(any(target_os = "linux", target_os = "android", target_os = "windows"), feature(heap_api))] +#![cfg_attr(any(target_os = "linux", target_os = "android"), feature(heap_api))] #![feature(alloc)] #![feature(box_syntax)]