Mesa (master): tnl: add const qualifier to silence warning

Brian Paul brianp at kemper.freedesktop.org
Tue Aug 30 09:18:32 PDT 2011


Module: Mesa
Branch: master
Commit: 788d9bf12174ce59584f4ed768a24a9626f5d9b7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=788d9bf12174ce59584f4ed768a24a9626f5d9b7

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Aug 30 09:47:25 2011 -0600

tnl: add const qualifier to silence warning

---

 src/mesa/tnl/t_draw.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c
index a5225c4..283ab69 100644
--- a/src/mesa/tnl/t_draw.c
+++ b/src/mesa/tnl/t_draw.c
@@ -340,7 +340,7 @@ static void bind_indices( struct gl_context *ctx,
    TNLcontext *tnl = TNL_CONTEXT(ctx);
    struct vertex_buffer *VB = &tnl->vb;
    GLuint i;
-   void *ptr;
+   const void *ptr;
 
    if (!ib) {
       VB->Elts = NULL;



More information about the mesa-commit mailing list