From 75bb6aa9a1571875257742d2bf5c5593c5cca6d2 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Sun, 7 Aug 2022 15:46:44 +0300 Subject: [PATCH] build: disable psabi warning with GCC 7.0 and ARM --- cmake/OpenCVCompilerOptions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVCompilerOptions.cmake b/cmake/OpenCVCompilerOptions.cmake index bbfd889690..db7b0e1b8c 100644 --- a/cmake/OpenCVCompilerOptions.cmake +++ b/cmake/OpenCVCompilerOptions.cmake @@ -134,7 +134,7 @@ if(CV_GCC OR CV_CLANG) add_extra_compiler_option(-Wshadow) add_extra_compiler_option(-Wsign-promo) add_extra_compiler_option(-Wuninitialized) - if(CV_GCC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0) AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0)) + if(CV_GCC AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 6.0) AND (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0 OR ARM)) add_extra_compiler_option(-Wno-psabi) endif() if(HAVE_CXX11)