Skip to content

Commit

Permalink
Silence ABI warnings with GCC 14
Browse files Browse the repository at this point in the history
With the previous flag, GCC 14 displays many warnings like "warning: the mangled name of ... changed between ‘-fabi-version=17’ and ‘-fabi-version=19’ [-Wabi]"
I think these warnings are not useful for us. Since PCL 1.15.0 will not be ABI-compatible to PCL 1.14.1 anyway, these name changes do not matter AFAIK.
  • Loading branch information
mvieth committed Nov 7, 2024
1 parent 6f64495 commit 25be27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ endif()
if(CMAKE_COMPILER_IS_GNUCXX)
if("${CMAKE_CXX_FLAGS}" STREQUAL "${CMAKE_CXX_FLAGS_DEFAULT}")
if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7)
string(APPEND CMAKE_CXX_FLAGS " -Wabi=11")
string(APPEND CMAKE_CXX_FLAGS " -Wabi=18")
else()
string(APPEND CMAKE_CXX_FLAGS " -Wabi")
endif()
Expand Down

0 comments on commit 25be27e

Please sign in to comment.