From: Konstantinos Margaritis Date: Thu, 18 Jan 2024 21:37:04 +0000 (+0200) Subject: add needed deprecation warning exceptions for SIMDe on Power VSX X-Git-Tag: vectorscan/5.4.12^2~75^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d38d0d0a5c865831361581ee150d209008dd2db;p=thirdparty%2Fvectorscan.git add needed deprecation warning exceptions for SIMDe on Power VSX --- diff --git a/cmake/simde.cmake b/cmake/simde.cmake index 0ac52832..4cd56bad 100644 --- a/cmake/simde.cmake +++ b/cmake/simde.cmake @@ -10,6 +10,10 @@ if (SIMDE_SSE42_H_FOUND) if (CMAKE_COMPILER_IS_CLANG) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DSIMDE_NO_CHECK_IMMEDIATE_CONSTANT") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DSIMDE_NO_CHECK_IMMEDIATE_CONSTANT") + if (ARCH_PPC64EL) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-altivec-src-compat") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-altivec-src-compat") + endif() endif() if (SIMDE_NATIVE) diff --git a/unit/CMakeLists.txt b/unit/CMakeLists.txt index d1134b15..83eb4d66 100644 --- a/unit/CMakeLists.txt +++ b/unit/CMakeLists.txt @@ -29,6 +29,10 @@ if(CMAKE_COMPILER_IS_GNUCC) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-array-bounds") endif() +if(CMAKE_COMPILER_IS_CLANG) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-pass-failed") +endif() + add_definitions(-DGTEST_HAS_PTHREAD=0 -DSRCDIR=${PROJECT_SOURCE_DIR}) set(unit_hyperscan_SOURCES