[Bf-blender-cvs] [540f9a3] master: Quiet warning with arg types

Campbell Barton noreply at git.blender.org
Tue Aug 25 09:33:06 CEST 2015


Commit: 540f9a3b11d20e8ee75718dfd8eb5a750d1864ef
Author: Campbell Barton
Date:   Tue Aug 25 17:27:18 2015 +1000
Branches: master
https://developer.blender.org/rB540f9a3b11d20e8ee75718dfd8eb5a750d1864ef

Quiet warning with arg types

===================================================================

M	source/blender/gpu/intern/gpu_debug.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_debug.c b/source/blender/gpu/intern/gpu_debug.c
index 15fe6ed..1c194f5 100644
--- a/source/blender/gpu/intern/gpu_debug.c
+++ b/source/blender/gpu/intern/gpu_debug.c
@@ -163,9 +163,10 @@ const char* gpuErrorString(GLenum err)
 #endif
 
 
-static void APIENTRY gpu_debug_proc(GLenum source, GLenum type, GLuint UNUSED(id),
-                               GLenum UNUSED(severity), GLsizei UNUSED(length),
-                               const GLchar *message, GLvoid *UNUSED(userParm))
+static void APIENTRY gpu_debug_proc(
+        GLenum source, GLenum type, GLuint UNUSED(id),
+        GLenum UNUSED(severity), GLsizei UNUSED(length),
+        const GLchar *message, const GLvoid *UNUSED(userParm))
 {
 	if (source == GL_DEBUG_SOURCE_API && type == GL_DEBUG_TYPE_ERROR) {
 		fprintf(stderr, "GL: %s\n", message);
@@ -179,9 +180,10 @@ static void APIENTRY gpu_debug_proc(GLenum source, GLenum type, GLuint UNUSED(id
 
 
 #ifndef GLEW_ES_ONLY
-static void APIENTRY gpu_debug_proc_amd(GLuint UNUSED(id), GLenum UNUSED(category),
-                               GLenum UNUSED(severity), GLsizei UNUSED(length),
-                               const GLchar *message,  GLvoid *UNUSED(userParm))
+static void APIENTRY gpu_debug_proc_amd(
+        GLuint UNUSED(id), GLenum UNUSED(category),
+        GLenum UNUSED(severity), GLsizei UNUSED(length),
+        const GLchar *message,  GLvoid *UNUSED(userParm))
 {
 	fprintf(stderr, "GL: %s\n", message);
 }




More information about the Bf-blender-cvs mailing list