[cogl/cogl-1.20] examples: Fix compiler warnings



commit ce7015bdb0b0613f727b5d9243d875f893f19563
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Wed Jun 10 15:15:59 2015 +0100

    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 b7c1c3f..0d0089d 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 e8223b5..6a0f813 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]