blur-effect: Silence compiler warning

Building with `debugoptimized` throws:
`'paint_opacity' may be used uninitialized in this function`

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1596>
This commit is contained in:
Robert Mader 2021-01-26 21:25:47 +01:00
parent ddc2e0f4cb
commit e8f46f169c

View File

@ -615,6 +615,10 @@ shell_blur_effect_paint_node (ClutterEffect *effect,
case SHELL_BLUR_MODE_BACKGROUND: case SHELL_BLUR_MODE_BACKGROUND:
paint_opacity = 255; paint_opacity = 255;
break; break;
default:
g_assert_not_reached();
break;
} }
if (needs_repaint (self, flags)) if (needs_repaint (self, flags))