From ce7015bdb0b0613f727b5d9243d875f893f19563 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 10 Jun 2015 15:15:59 +0100 Subject: [PATCH] examples: Fix compiler warnings --- examples/cogl-info.c | 6 +++--- examples/cogl-x11-tfp.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/cogl-info.c b/examples/cogl-info.c index b7c1c3f5..0d0089df 100644 --- a/examples/cogl-info.c +++ b/examples/cogl-info.c @@ -196,9 +196,6 @@ output_cb (CoglOutput *output, void *user_data) cogl_output_get_mm_height (output)); switch (cogl_output_get_subpixel_order (output)) { - case COGL_SUBPIXEL_ORDER_UNKNOWN: - order = "unknown"; - break; case COGL_SUBPIXEL_ORDER_NONE: order = "non-standard"; break; @@ -214,6 +211,9 @@ output_cb (CoglOutput *output, void *user_data) case COGL_SUBPIXEL_ORDER_VERTICAL_BGR: order = "vertical,bgr"; break; + default: + order = "unknown"; + break; } printf (" ยป sub pixel order = %s\n", order); diff --git a/examples/cogl-x11-tfp.c b/examples/cogl-x11-tfp.c index e8223b56..6a0f8130 100644 --- a/examples/cogl-x11-tfp.c +++ b/examples/cogl-x11-tfp.c @@ -148,7 +148,7 @@ main (int argc, char **argv) Window tfp_xwin = None; Pixmap pixmap; CoglTexturePixmapX11 *tfp; - CoglTexture *right_texture; + CoglTexture *right_texture = NULL; GC gc = None; int i;