From 062147ff1c26aaedaf08f99d1815dc41a05e7aa4 Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Tue, 22 Dec 2020 15:41:41 +0100 Subject: [PATCH] Fix conditional-uninitialized warning --- src/gtk/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gtk/settings.cpp b/src/gtk/settings.cpp index 66ab0a690d..97871a0daf 100644 --- a/src/gtk/settings.cpp +++ b/src/gtk/settings.cpp @@ -404,7 +404,7 @@ void wxGtkStyleContext::Bg(wxColour& color, int state) const const int i = stride * (cairo_image_surface_get_height(surf) / 2); const unsigned* p = reinterpret_cast(data + i); const unsigned pixel = *p; - guchar r, g, b, a = 0xff; + guchar r = 0, g = 0, b = 0, a = 0xff; switch (cairo_image_surface_get_format(surf)) { case CAIRO_FORMAT_ARGB32: