[cogl/cogl-1.22] Initialize out variables
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/cogl-1.22] Initialize out variables
- Date: Thu, 3 Sep 2015 09:38:00 +0000 (UTC)
commit ca5226513eb64bceb38ca01994799c4e7cd9f5fa
Author: Emmanuele Bassi <ebassi gnome org>
Date: Thu Sep 3 08:58:44 2015 +0100
Initialize out variables
Avoids a compiler warning with strict compilation flags.
cogl/driver/gl/gl/cogl-driver-gl.c | 4 ++--
1 files 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 0bcb9ce..716d1dd 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]