commit 3885447579b7f14a585e96c3f645577fc815ea17
Author: Scott Kostyshak <[email protected]>
Date: Tue Apr 15 15:02:28 2025 +0200
Ignore Clang warning -Wbitwise-instead-of-logical
We do not want to use || because the side effects of the function
calls are important.
See #13116.
---
src/BufferView.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 5694ee29d4..b3e1c77a97 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -2887,7 +2887,10 @@ void BufferView::mouseEventDispatch(FuncRequest const &
cmd0)
// Notify left insets
if (cur != old) {
+ #pragma clang diagnostic push
+ #pragma clang diagnostic ignored "-Wbitwise-instead-of-logical"
bool badcursor = old.fixIfBroken() | cur.fixIfBroken();
+ #pragma clang diagnostic pop
badcursor |= notifyCursorLeavesOrEnters(old, cur);
if (badcursor)
cursor().fixIfBroken();
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs