sim: Enable -Werror
Enable -Werror in the build of the C code (also remove an unneeded TODO
comment).
Signed-off-by: David Brown <david.brown@linaro.org>
diff --git a/sim/mcuboot-sys/build.rs b/sim/mcuboot-sys/build.rs
index c4eb61d..e6414cb 100644
--- a/sim/mcuboot-sys/build.rs
+++ b/sim/mcuboot-sys/build.rs
@@ -13,8 +13,6 @@
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 @@
conf.include("../../boot/zephyr/include");
conf.debug(true);
conf.flag("-Wall");
+ conf.flag("-Werror");
conf.compile("libbootutil.a");