summaryrefslogtreecommitdiff
path: root/include/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-10-21 19:31:46 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-10-21 22:54:34 +0200
commite399c5a602a690126463d1cec62c511f1e053686 (patch)
tree1fb00f7a6fdd460c037603c727f1d8d052fc2056 /include/sal
parentf7a584a592b0e481f974039288da585201c60747 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'include/sal')
-rw-r--r--include/sal/config.h7
1 files changed, 7 insertions, 0 deletions
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