From bc91ab9b133dec2d2bed3792e9b5b205d8023070 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(),