diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-25 15:26:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-25 16:47:46 +0200 |
commit | ff87ef83edf77ba0a9bf11bb8e5306e3b8c7cb04 (patch) | |
tree | 763d41b8f0a7d82eab2d79aca4bb339a1185b9cc /vcl/unx | |
parent | 0bbc397dc5b4440144627330c2b6ee479bdcf074 (diff) |
-Werror=maybe-uninitialized
which only shows up in an optimised build, using gcc
Change-Id: I16015c7d139680aba11bf183c3e2bceb79c9ecba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101330
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkinst.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx index 19cffc2640c3..c6e557a69275 100644 --- a/vcl/unx/gtk3/gtk3gtkinst.cxx +++ b/vcl/unx/gtk3/gtk3gtkinst.cxx @@ -8981,7 +8981,7 @@ public: virtual void set_alignment(TxtAlign eXAlign) override { - gfloat xalign; + gfloat xalign = 0; switch (eXAlign) { case TxtAlign::Left: @@ -12879,7 +12879,7 @@ public: virtual void set_alignment(TxtAlign eXAlign) override { - GtkJustification eJust; + GtkJustification eJust = GTK_JUSTIFY_LEFT; switch (eXAlign) { case TxtAlign::Left: |