From cf418a286e427089997e59b284118970b9664f53 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Thu, 20 Jul 2023 06:52:11 -0400 Subject: [PATCH] chore: make implicit function declarations a compile-time error --- cli/loader/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/loader/src/lib.rs b/cli/loader/src/lib.rs index 30cec2ca..b498e64b 100644 --- a/cli/loader/src/lib.rs +++ b/cli/loader/src/lib.rs @@ -370,7 +370,8 @@ impl Loader { .opt_level(2) .cargo_metadata(false) .target(BUILD_TARGET) - .host(BUILD_TARGET); + .host(BUILD_TARGET) + .flag_if_supported("-Werror=implicit-function-declaration"); let compiler = config.get_compiler(); let mut command = Command::new(compiler.path()); for (key, value) in compiler.env() {