From 0d7210c1e52e162eafab8b3e8d57e95448762dba Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 27 Dec 2023 09:07:19 -0800 Subject: [PATCH] Maybe fix mac warnings --- shared/config.gradle | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shared/config.gradle b/shared/config.gradle index 4044d7e..6bdc0cc 100644 --- a/shared/config.gradle +++ b/shared/config.gradle @@ -37,6 +37,13 @@ model { } } +// NativeUtils adds the following OpenCV warning suppression for Linux, but not +// for macOS +// https://github.com/opencv/opencv/issues/20269 +nativeUtils.platformConfigs.osxuniversal.cppCompiler.args.add("-Wno-deprecated-anon-enum-enum-conversion") + +nativeUtils.platformConfigs.linuxathena.linker.args.add("-Wl,--fatal-warnings") + task copyAllOutputs(type: Copy) { def outputsFolder = file("$project.buildDir/outputs")