commit ec1ad735db813b82c152a125505ac5f979f6330d
Author: Scott Kostyshak <[email protected]>
Date: Tue Apr 15 18:05:19 2025 +0200
Better fix to avoid Clang warning
This fix works for GCC as well. Amends 38854475.
For discussion, see #13116.
Thanks to Pavel.
---
src/BufferView.cpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index b3e1c77a97..a3fed6d802 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -2887,10 +2887,8 @@ 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
+ bool badcursor = old.fixIfBroken();
+ badcursor |= cur.fixIfBroken();
badcursor |= notifyCursorLeavesOrEnters(old, cur);
if (badcursor)
cursor().fixIfBroken();
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs