From ca5226513eb64bceb38ca01994799c4e7cd9f5fa Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 3 Sep 2015 08:58:44 +0100 Subject: [PATCH] Initialize out variables Avoids a compiler warning with strict compilation flags. --- cogl/driver/gl/gl/cogl-driver-gl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogl/driver/gl/gl/cogl-driver-gl.c b/cogl/driver/gl/gl/cogl-driver-gl.c index 0bcb9ce15..716d1dd0b 100644 --- a/cogl/driver/gl/gl/cogl-driver-gl.c +++ b/cogl/driver/gl/gl/cogl-driver-gl.c @@ -103,9 +103,9 @@ _cogl_driver_pixel_format_to_gl (CoglContext *context, GLenum *out_gltype) { CoglPixelFormat required_format; - GLenum glintformat; + GLenum glintformat = 0; GLenum glformat = 0; - GLenum gltype; + GLenum gltype = 0; required_format = format;