rust-agent: Treat warnings as error

Avoid the accumulation of warnings we had, as reported in #750.

Fixes: #750

Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
Christophe de Dinechin 2020-09-24 13:50:13 +02:00
parent 0e4baaabcc
commit 0e898c6bc4
3 changed files with 4 additions and 4 deletions

View File

@ -106,10 +106,10 @@ default: $(TARGET) show-header
$(TARGET): $(GENERATED_CODE) $(TARGET_PATH)
$(TARGET_PATH): $(SOURCES) | show-summary
@cargo build --target $(TRIPLE) --$(BUILD_TYPE)
@RUSTFLAGS="--deny warnings" cargo build --target $(TRIPLE) --$(BUILD_TYPE)
optimize: $(SOURCES) | show-summary show-header
@RUSTFLAGS='-C link-arg=-s' cargo build --target $(TRIPLE) --$(BUILD_TYPE)
@RUSTFLAGS='-C link-arg=-s --deny-warnings' cargo build --target $(TRIPLE) --$(BUILD_TYPE)
show-header:
@printf "%s - version %s (commit %s)\n\n" "$(TARGET)" "$(VERSION)" "$(COMMIT_MSG)"

View File

@ -6,7 +6,7 @@
default: build
build:
cargo build -v
RUSTFLAGS="--deny warnings" cargo build -v
clean:
cargo clean

View File

@ -6,7 +6,7 @@
default: build
build:
cargo build -v
RUSTFLAGS="--deny warnings" cargo build -v
clean:
cargo clean