[gtk/ci-jobs: 16/19] Silence compiler warnings in non-debug builds
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ci-jobs: 16/19] Silence compiler warnings in non-debug builds
- Date: Tue, 11 Feb 2020 13:41:50 +0000 (UTC)
commit c9869dae39acdf092c021e4eb1c6fd5550397451
Author: Emmanuele Bassi <ebassi gnome org>
Date: Wed Jan 29 14:02:41 2020 +0100
Silence compiler warnings in non-debug builds
gsk/gl/gskglrenderer.c | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 44d8115dbb..011bbb18b8 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -2845,17 +2845,18 @@ gsk_gl_renderer_unrealize (GskRenderer *renderer)
static void
gsk_gl_renderer_clear_tree (GskGLRenderer *self)
{
- int removed_textures;
-
if (self->gl_context == NULL)
return;
gdk_gl_context_make_current (self->gl_context);
ops_reset (&self->op_builder);
- removed_textures = gsk_gl_driver_collect_textures (self->gl_driver);
+
+#ifdef G_ENABLE_DEBUG
+ int removed_textures = gsk_gl_driver_collect_textures (self->gl_driver);
GSK_RENDERER_NOTE (GSK_RENDERER (self), OPENGL, g_message ("Collected: %d textures", removed_textures));
+#endif
}
static void
@@ -3050,7 +3051,7 @@ add_offscreen_ops (GskGLRenderer *self,
graphene_matrix_t prev_projection;
graphene_rect_t prev_viewport;
graphene_matrix_t item_proj;
- float prev_opacity;
+ float prev_opacity = 1.0;
int texture_id = 0;
if (node_is_invisible (child_node))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]