[Mesa-dev] [PATCH 20/20] nvprogram: Silence "warning: unused parameter ‘ctx’"
Ian Romanick
idr at freedesktop.org
Mon Aug 29 14:59:10 PDT 2011
From: Ian Romanick <ian.d.romanick at intel.com>
---
src/mesa/main/nvprogram.c | 2 +-
src/mesa/main/nvprogram.h | 2 +-
src/mesa/program/nvvertparse.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mesa/main/nvprogram.c b/src/mesa/main/nvprogram.c
index 7ff7645..a0e89b1 100644
--- a/src/mesa/main/nvprogram.c
+++ b/src/mesa/main/nvprogram.c
@@ -560,7 +560,7 @@ _mesa_emit_nv_temp_initialization(struct gl_context *ctx,
}
void
-_mesa_setup_nv_temporary_count(struct gl_context *ctx, struct gl_program *program)
+_mesa_setup_nv_temporary_count(struct gl_program *program)
{
GLuint i;
diff --git a/src/mesa/main/nvprogram.h b/src/mesa/main/nvprogram.h
index 3a55783..fc579a9 100644
--- a/src/mesa/main/nvprogram.h
+++ b/src/mesa/main/nvprogram.h
@@ -110,7 +110,7 @@ _mesa_GetProgramNamedParameterdvNV(GLuint id, GLsizei len, const GLubyte *name,
GLdouble *params);
extern void
-_mesa_setup_nv_temporary_count(struct gl_context *ctx, struct gl_program *program);
+_mesa_setup_nv_temporary_count(struct gl_program *program);
extern void
_mesa_emit_nv_temp_initialization(struct gl_context *ctx,
diff --git a/src/mesa/program/nvvertparse.c b/src/mesa/program/nvvertparse.c
index bdd44a4..91fe2c4 100644
--- a/src/mesa/program/nvvertparse.c
+++ b/src/mesa/program/nvvertparse.c
@@ -1427,7 +1427,7 @@ _mesa_parse_nv_vertex_program(struct gl_context *ctx, GLenum dstTarget,
}
program->Base.NumParameters = program->Base.Parameters->NumParameters;
- _mesa_setup_nv_temporary_count(ctx, &program->Base);
+ _mesa_setup_nv_temporary_count(&program->Base);
_mesa_emit_nv_temp_initialization(ctx, &program->Base);
}
else {
--
1.7.4.4
More information about the mesa-dev
mailing list