deny warnings

This commit is contained in:
tigercosmos 2017-12-21 01:22:49 +08:00
parent dfd8e85338
commit 6d6491e814
5 changed files with 22 additions and 19 deletions

View file

@ -20,11 +20,11 @@ matrix:
- export LLVM_CONFIG=/usr/lib/llvm-3.9/bin/llvm-config - export LLVM_CONFIG=/usr/lib/llvm-3.9/bin/llvm-config
- export CC=gcc-5 CXX=g++-5 - export CC=gcc-5 CXX=g++-5
script: script:
- ./mach build -d --verbose - RUSTFLAGS='-D warnings' ./mach build -d --verbose
- ./mach test-unit - RUSTFLAGS='-D warnings' ./mach test-unit
- ./mach clean - ./mach clean
- ./mach build-geckolib - RUSTFLAGS='-D warnings' ./mach build-geckolib
- ./mach test-stylo - RUSTFLAGS='-D warnings' ./mach test-stylo
- bash etc/ci/lockfile_changed.sh - bash etc/ci/lockfile_changed.sh
cache: cache:
directories: directories:

View file

@ -48,6 +48,8 @@ cache:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1')) # - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
build_script: build_script:
- mach build -d -v && mach test-unit - set RUSTFLAGS=-D warnings
- mach build -d -v
- mach test-unit
test: off test: off

View file

@ -28,6 +28,7 @@ pub use self::platform::{alloc, dealloc, realloc};
mod platform { mod platform {
extern crate libc; extern crate libc;
#[cfg(not(any(target_os = "android")))]
use std::ptr; use std::ptr;
use super::MIN_ALIGN; use super::MIN_ALIGN;

View file

@ -32,11 +32,11 @@ mac-rel-wpt4:
mac-dev-unit: mac-dev-unit:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig ./mach build --dev - env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig RUSTFLAGS=-Dwarnings ./mach build --dev
- env ./mach test-unit - env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig RUSTFLAGS=-Dwarnings ./mach test-unit
- env ./mach package --dev - env ./mach package --dev
- env ./mach build-cef - env PKG_CONFIG_PATH=/usr/local/opt/zlib/lib/pkgconfig RUSTFLAGS=-Dwarnings ./mach build-cef
- ./mach build-geckolib - env RUSTFLAGS=-Dwarnings ./mach build-geckolib
- bash ./etc/ci/lockfile_changed.sh - bash ./etc/ci/lockfile_changed.sh
- bash ./etc/ci/manifest_changed.sh - bash ./etc/ci/manifest_changed.sh
@ -80,13 +80,13 @@ linux-dev:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- ./mach test-tidy --no-progress --all - ./mach test-tidy --no-progress --all
- ./mach test-tidy --no-progress --self-test - ./mach test-tidy --no-progress --self-test
- env CC=gcc-5 CXX=g++-5 ./mach build --dev - env CC=gcc-5 CXX=g++-5 RUSTFLAGS=-Dwarnings ./mach build --dev
- env ./mach test-unit - env CC=gcc-5 CXX=g++-5 RUSTFLAGS=-Dwarnings ./mach test-unit
- env ./mach package --dev - env ./mach package --dev
- env ./mach build-cef - env CC=gcc-5 CXX=g++-5 RUSTFLAGS=-Dwarnings ./mach build-cef
- env ./mach build --dev --no-default-features --features default-except-unstable - env CC=gcc-5 CXX=g++-5 RUSTFLAGS=-Dwarnings ./mach build --dev --no-default-features --features default-except-unstable
- ./mach build-geckolib - env RUSTFLAGS=-Dwarnings ./mach build-geckolib
- ./mach test-stylo - env RUSTFLAGS=-Dwarnings ./mach test-stylo
- bash ./etc/ci/lockfile_changed.sh - bash ./etc/ci/lockfile_changed.sh
- bash ./etc/ci/manifest_changed.sh - bash ./etc/ci/manifest_changed.sh
- bash ./etc/ci/check_no_panic.sh - bash ./etc/ci/check_no_panic.sh
@ -120,7 +120,7 @@ linux-nightly:
android: android:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach build --android --dev - env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 RUSTFLAGS=-Dwarnings ./mach build --android --dev
- env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach package --android --dev - env ANDROID_SDK=/home/servo/android/sdk/r25.2.3 ./mach package --android --dev
- bash ./etc/ci/lockfile_changed.sh - bash ./etc/ci/lockfile_changed.sh
- bash ./etc/ci/manifest_changed.sh - bash ./etc/ci/manifest_changed.sh
@ -134,18 +134,19 @@ android-nightly:
arm32: arm32:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- env ./mach build --rel --target=arm-unknown-linux-gnueabihf - env RUSTFLAGS=-Dwarnings ./mach build --rel --target=arm-unknown-linux-gnueabihf
- bash ./etc/ci/lockfile_changed.sh - bash ./etc/ci/lockfile_changed.sh
- bash ./etc/ci/manifest_changed.sh - bash ./etc/ci/manifest_changed.sh
arm64: arm64:
- ./mach clean-nightlies --keep 3 --force - ./mach clean-nightlies --keep 3 --force
- env ./mach build --rel --target=aarch64-unknown-linux-gnu - env RUSTFLAGS=-Dwarnings ./mach build --rel --target=aarch64-unknown-linux-gnu
- bash ./etc/ci/lockfile_changed.sh - bash ./etc/ci/lockfile_changed.sh
- bash ./etc/ci/manifest_changed.sh - bash ./etc/ci/manifest_changed.sh
windows-msvc-dev: windows-msvc-dev:
- mach.bat clean-nightlies --keep 3 --force - mach.bat clean-nightlies --keep 3 --force
- set RUSTFLAGS=-D warnings
- mach.bat build --dev - mach.bat build --dev
- mach.bat test-unit - mach.bat test-unit
- mach.bat package --dev - mach.bat package --dev

View file

@ -7,7 +7,6 @@
#[macro_use] extern crate bitflags; #[macro_use] extern crate bitflags;
extern crate compositing; extern crate compositing;
#[cfg(target_os = "android")] extern crate egl;
extern crate euclid; extern crate euclid;
extern crate gleam; extern crate gleam;
extern crate glutin; extern crate glutin;