[gtk+/gtk-3-16] Fix some clang warnings



commit 524ccf6d4216570ed5a7dbb3769d86bf2b902cfc
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Mar 22 14:40:57 2015 -0400

    Fix some clang warnings
    
    It complains about double const, and it is right.

 gdk/gdkgl.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gdk/gdkgl.c b/gdk/gdkgl.c
index 1d7d2d4..85ce63d 100644
--- a/gdk/gdkgl.c
+++ b/gdk/gdkgl.c
@@ -52,7 +52,8 @@ get_vertex_type_name (int type)
 }
 
 static guint
-create_shader (int type, const char const *code)
+create_shader (int         type,
+               const char *code)
 {
   guint shader;
   int status;
@@ -85,8 +86,8 @@ create_shader (int type, const char const *code)
 
 static void
 make_program (GdkGLContextProgram *program,
-              const char const *vertex_shader_code,
-              const char const *fragment_shader_code)
+              const char          *vertex_shader_code,
+              const char          *fragment_shader_code)
 {
   guint vertex_shader, fragment_shader;
   int status;


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