ICU-22522 Revert "Use the Clang -Wno-ambiguous-reversed-operator flag".

This reverts commit dc1b8ca26e.
This commit is contained in:
Fredrik Roubert 2023-11-29 18:15:35 +01:00 committed by Fredrik Roubert
parent e48d2734c6
commit e5f3295b91

View file

@ -1312,16 +1312,6 @@ fi
# Now that we're done using CPPFLAGS etc. for tests, we can change it
# for build.
AC_LANG_PUSH([C++])
# Silence a Clang warning about ambiguous operators with C++20 rewritten
# expressions that possibly or maybe even probably is a mistake (ICU-20973).
AX_CHECK_COMPILE_FLAG(
[-Wambiguous-reversed-operator],
[CXXFLAGS+=" -Wno-ambiguous-reversed-operator"],
[],
[-Werror])
AC_LANG_POP([C++])
if test "${CC}" = "clang"; then
CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality"
else