Build in std=c99 mode
Our current travis environment still uses gcc 4.8.4 which defaults to
std=gnu90. Some of tinycrypt's code requires c99.
Signed-off-by: Fabio Utzig <utzig@apache.org>
diff --git a/sim/mcuboot-sys/build.rs b/sim/mcuboot-sys/build.rs
index aadfb68..1135510 100644
--- a/sim/mcuboot-sys/build.rs
+++ b/sim/mcuboot-sys/build.rs
@@ -83,6 +83,11 @@
conf.flag("-Wall");
conf.flag("-Werror");
+ // FIXME: travis-ci still uses gcc 4.8.4 which defaults to std=gnu90.
+ // It has incomplete std=c11 and std=c99 support but std=c99 was checked
+ // to build correctly so leaving it here to updated in the future...
+ conf.flag("-std=c99");
+
conf.compile("libbootutil.a");
walk_dir("../../boot").unwrap();