From 84fc0958000aaedb0167c9280f9c2128ae912bf2 Mon Sep 17 00:00:00 2001 From: lyken Date: Wed, 10 Jul 2024 10:17:43 +0800 Subject: [PATCH] core: IRRT -Werror=return-type --- nac3core/build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nac3core/build.rs b/nac3core/build.rs index 59dd26fa..7393ca9b 100644 --- a/nac3core/build.rs +++ b/nac3core/build.rs @@ -31,6 +31,7 @@ fn compile_irrt(irrt_dir: &Path, out_dir: &Path) { "-S", "-Wall", "-Wextra", + "-Werror=return-type", "-I", irrt_dir.to_str().unwrap(), "-o", @@ -96,6 +97,7 @@ fn compile_irrt_test(irrt_dir: &Path, out_dir: &Path) { "-O0", "-Wall", "-Wextra", + "-Werror=return-type", "-lm", // for `tgamma()`, `lgamma()` "-o", exe_path.to_str().unwrap(),