summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorĐoàn Trần Công Danh <congdanhqx@gmail.com>2024-07-24 22:21:12 +0700
committerMichael Weghorn <m.weghorn@posteo.de>2024-07-25 07:52:13 +0200
commitb6edb370a189573e0006269b9252ca1ae666e530 (patch)
tree00676766b62bb881a41be81aa5142b72924fb6a8
parent35efb60e20be3d2e2d86544039f160cfe45b6abc (diff)
gtk4: fix -Wmaybe-uninitialized
Despite that we bailed out when both old and new value set, gcc-13 cannot see that. Change-Id: Ie727a14bb29a4b1cc304d2ce077c62f72cece19f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170973 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
-rw-r--r--vcl/unx/gtk4/gtkaccessibleeventlistener.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk4/gtkaccessibleeventlistener.cxx b/vcl/unx/gtk4/gtkaccessibleeventlistener.cxx
index aacf2191f8be..5a1b2a38076e 100644
--- a/vcl/unx/gtk4/gtkaccessibleeventlistener.cxx
+++ b/vcl/unx/gtk4/gtkaccessibleeventlistener.cxx
@@ -49,7 +49,7 @@ void GtkAccessibleEventListener::notifyEvent(
#endif
case css::accessibility::AccessibleEventId::STATE_CHANGED:
{
- sal_Int64 nState;
+ sal_Int64 nState = 0;
bool bNewValueSet = false;
if (rEvent.NewValue >>= nState)
{