include/sal/config.h | 7 +++++++ ucb/source/ucp/cmis/cmis_url.cxx | 2 ++ 2 files changed, 9 insertions(+)
New commits: commit e399c5a602a690126463d1cec62c511f1e053686 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Mon Oct 21 19:31:46 2019 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Mon Oct 21 22:54:34 2019 +0200 Silence new Clang 10 trunk -std=c++2a -Wambiguous-reversed-operator for now It is unclear whether this will really be errors in a final C++20 standard, see <https://github.com/llvm/llvm-project/commit/ 974c8b7e2fde550fd87850d50695341101c38c2d> "[c++20] Add rewriting from comparison operators to <=> / ==" for details. Change-Id: I3a7c2574a65952c8d255107823a1d1e18b2cbe4c Reviewed-on: https://gerrit.libreoffice.org/81268 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/include/sal/config.h b/include/sal/config.h index c7e304a8c5d7..335c4174e3ae 100644 --- a/include/sal/config.h +++ b/include/sal/config.h @@ -94,6 +94,13 @@ #if __has_warning("-Wpotentially-evaluated-expression") #pragma GCC diagnostic ignored "-Wpotentially-evaluated-expression" #endif +// Before fixing occurrences of this warning, lets see whether C++20 will still change to obsolete +// the warning (see +// <https://github.com/llvm/llvm-project/commit/974c8b7e2fde550fd87850d50695341101c38c2d> "[c++20] +// Add rewriting from comparison operators to <=> / =="): +#if __has_warning("-Wambiguous-reversed-operator") +#pragma GCC diagnostic ignored "-Wambiguous-reversed-operator" +#endif #endif #endif // INCLUDED_SAL_CONFIG_H diff --git a/ucb/source/ucp/cmis/cmis_url.cxx b/ucb/source/ucp/cmis/cmis_url.cxx index 7bca52492a73..b83d6bee316b 100644 --- a/ucb/source/ucp/cmis/cmis_url.cxx +++ b/ucb/source/ucp/cmis/cmis_url.cxx @@ -7,6 +7,8 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <sal/config.h> + #if defined __GNUC__ && !defined __clang__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated" _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits