Commit 0b693c0c authored by David Brown's avatar David Brown Committed by David Brown
Browse files

sim: Enable -Werror

Enable -Werror in the build of the C code (also remove an unneeded TODO
comment).

Signed-off-by: default avatarDavid Brown <david.brown@linaro.org>
parent 704ac6f5
Loading
Loading
Loading
Loading
+1 −2
Changes for sim/mcuboot-sys/build.rs: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -13,8 +13,6 @@ fn main() {
    let sig_ecdsa = env::var("CARGO_FEATURE_SIG_ECDSA").is_ok();
    let overwrite_only = env::var("CARGO_FEATURE_OVERWRITE_ONLY").is_ok();

    // TODO: Force clang if we are requestion fuzzing.

    let mut conf = gcc::Config::new();
    conf.define("__BOOTSIM__", None);
    conf.define("MCUBOOT_USE_FLASH_AREA_GET_SECTORS", None);
@@ -65,6 +63,7 @@ fn main() {
    conf.include("../../boot/zephyr/include");
    conf.debug(true);
    conf.flag("-Wall");
    conf.flag("-Werror");

    conf.compile("libbootutil.a");