[build] Small fixes to build on GCC 15 (#8148)

Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
Iris
2025-08-09 02:07:41 -05:00
committed by GitHub
parent 9ac7e286f5
commit 78fa67099e
17 changed files with 44 additions and 14 deletions

View File

@@ -43,6 +43,8 @@ nativeUtils.platformConfigs.each {
nativeUtils.platformConfigs.each {
if (it.name.contains('linux')) {
it.cppCompiler.debugArgs.add("-gz=zlib")
// Make warning in OpenCV 4.10 from GCC 15 not an error
it.cppCompiler.args.add("-Wno-error=overloaded-virtual")
}
}