Use redoxer for gitlab build, fix warnings, and allow warnings

parent 7967b710
Pipeline #4801 passed with stage
in 1 minute and 9 seconds
# This file is a template, and might need editing before it works on your project.
# Official language image. Look for the different tagged releases at:
# https://hub.docker.com/r/library/rust/tags/
image: "rust:latest"
image: "redoxos/redoxer"
# Optional: Pick zero or more services to be used on all builds.
# Only needed when using a docker container to run your tests in.
# Check out: http://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
#services:
# - mysql:latest
# - redis:latest
# - postgres:latest
# Optional: Install a C compiler, cmake and git into the container.
# You will often need this when you (or any of your dependencies) depends on C code.
#before_script:
#- apt-get update -yqq
#- apt-get install -yqq --no-install-recommends build-essential
build:linux:
script:
- cargo build
# Use cargo to test the project
test:cargo:
build:redox:
script:
- rustup toolchain add nightly
- rustup target add x86_64-unknown-redox --toolchain nightly
- rustup show # Print version info for debugging
- cargo +nightly check --verbose --target x86_64-unknown-redox
- redoxer build
......@@ -2,7 +2,6 @@
#![crate_type = "lib"]
#![cfg_attr(feature = "no_std", feature(alloc))]
#![cfg_attr(feature = "no_std", no_std)]
#![deny(warnings)]
#[cfg(feature = "no_std")]
extern crate alloc;
......
......@@ -407,7 +407,7 @@ pub trait Renderer {
for new_y in (y - r)..(y + real_h as i32 - r) as i32 {
let c = blur_data[counter as usize];
let mut alpha: u8 = if color.a() < 255 - c.r() {
let alpha: u8 = if color.a() < 255 - c.r() {
color.a()
} else {
255 - c.r()
......@@ -515,7 +515,7 @@ pub trait Renderer {
let start = offset + l * width;
let mut stop = start + w;
let begin = l * w;
let mut end = begin + w;
let end = begin + w;
//check boundaries
if start_x + w > width {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment