Mesa (master): nvfx: Remove const qualifer from nvfx_vertprog_translate.
Vinson Lee
vlee at kemper.freedesktop.org
Sat Sep 18 07:48:47 UTC 2010
Module: Mesa
Branch: master
Commit: 013e4cca9f9c74e52f8372b500fb3ff07c692a61
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=013e4cca9f9c74e52f8372b500fb3ff07c692a61
Author: Vinson Lee <vlee at vmware.com>
Date: Sat Sep 18 00:47:36 2010 -0700
nvfx: Remove const qualifer from nvfx_vertprog_translate.
Silences this GCC warning.
nvfx_vertprog.c: In function 'nvfx_vertprog_translate':
nvfx_vertprog.c:998: warning: assignment discards qualifiers from pointer target type
---
src/gallium/drivers/nvfx/nvfx_vertprog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/drivers/nvfx/nvfx_vertprog.c b/src/gallium/drivers/nvfx/nvfx_vertprog.c
index 23f045e..db352de 100644
--- a/src/gallium/drivers/nvfx/nvfx_vertprog.c
+++ b/src/gallium/drivers/nvfx/nvfx_vertprog.c
@@ -973,7 +973,7 @@ nvfx_vertprog_prepare(struct nvfx_context* nvfx, struct nvfx_vpc *vpc)
DEBUG_GET_ONCE_BOOL_OPTION(nvfx_dump_vp, "NVFX_DUMP_VP", FALSE)
static struct nvfx_vertex_program*
-nvfx_vertprog_translate(struct nvfx_context *nvfx, const struct pipe_shader_state* vps, const struct tgsi_shader_info* info)
+nvfx_vertprog_translate(struct nvfx_context *nvfx, const struct pipe_shader_state* vps, struct tgsi_shader_info* info)
{
struct tgsi_parse_context parse;
struct nvfx_vertex_program* vp = NULL;
More information about the mesa-commit
mailing list