mirror of
git://sourceware.org/git/libabigail.git
synced 2025-02-14 20:46:58 +00:00
configure: set -Wno-error-overloaded-virtual for clang builds
When compiling with clang, several locations in the code emit the warning -Woverloaded-virtual. That warning is not trivial to fix. In order to allow CXX=clang++ ABIGAIL_DEVEL=1 development, demote the warning to not be an error when compiling with clang. * configure.ac: set -Wno-error-overloaded-virtual for clang++ Signed-off-by: Matthias Maennich <maennich@google.com>
This commit is contained in:
parent
2e8a4b54cd
commit
e5e8cb9543
@ -641,6 +641,12 @@ if test x$ENABLE_UBSAN = xyes; then
|
||||
CXXFLAGS="$CXXFLAGS -fsanitize=undefined"
|
||||
fi
|
||||
|
||||
dnl Check if we compile with clang and set flags accordingly
|
||||
dnl TODO: fix that warning (spoiler: not trivial)
|
||||
if `$CXX -v 2>&1 | grep 'clang version' > /dev/null 2>&1`; then
|
||||
CXXFLAGS="$CXXFLAGS -Wno-error-overloaded-virtual"
|
||||
fi
|
||||
|
||||
dnl Check if several decls and constant are defined in dependant
|
||||
dnl libraries
|
||||
HAS_EM_AARCH64=no
|
||||
|
Loading…
Reference in New Issue
Block a user