examples: Fix compiler warnings

This commit is contained in:
Emmanuele Bassi 2015-06-10 15:15:59 +01:00
parent 0294fc27ed
commit ce7015bdb0
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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;