Disable -Wpsabi
There was an ABI change for 64 bit aligned vectors between gcc 5 and gcc 6 on a few 64 bit platforms, and gcc 10 reports "note" level warnings for each affected access, which is very noisy and hides more important information. These notes are issued because there is no reliable diagnostic for actual problems.
This commit is contained in:
parent
70e62e384d
commit
53579c42ad
|
@ -167,4 +167,13 @@ if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
|
|||
# This one is different, it is used to guard warning removal for this inside the code
|
||||
set( HAVE_WIMPLICIT_FLOAT_CONVERSION true )
|
||||
endif()
|
||||
|
||||
|
||||
# Avoid ABI warnings, specifically one about an ABI change on ppc64el from gcc5 to gcc 6.
|
||||
CHECK_CXX_COMPILER_FLAG( "-Wpsabi" COMPILER_SUPPORTS_WPSABI )
|
||||
|
||||
if( COMPILER_SUPPORTS_WPSABI )
|
||||
set( WARN_FLAGS_CXX "${WARN_FLAGS_CXX} -Wno-psabi" )
|
||||
message( STATUS "Disabling warning -Wpsabi" )
|
||||
endif()
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue