diff options
author | Brian Paul <[email protected]> | 2003-05-28 15:30:53 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-05-28 15:30:53 +0000 |
commit | d18c08fe890e100269be8d5cccbaf7cd7bf9916d (patch) | |
tree | 4cf527b439964f2be44cd709da5396fcb8b73f87 /src/mesa/tnl | |
parent | 0b52018df2a64a159f697756fbda47bcd1de3ef4 (diff) |
silence some warnings (Evgeny Kotsuba)
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r-- | src/mesa/tnl/t_imm_api.c | 5 | ||||
-rw-r--r-- | src/mesa/tnl/t_imm_elt.c | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/tnl/t_imm_api.c b/src/mesa/tnl/t_imm_api.c index 0eef3b735ca..cc7f42f3847 100644 --- a/src/mesa/tnl/t_imm_api.c +++ b/src/mesa/tnl/t_imm_api.c @@ -1,5 +1,3 @@ -/* $Id: t_imm_api.c,v 1.40 2003/03/31 18:19:56 brianp Exp $ */ - /* * Mesa 3-D graphics library * Version: 5.1 @@ -405,7 +403,8 @@ _tnl_End(void) */ #define CHECK_ATTRIB_ARRAY(IM, ATTR) \ if (!IM->Attrib[ATTR]) { \ - IM->Attrib[ATTR] = _mesa_malloc(IMM_SIZE * 4 * sizeof(GLfloat)); \ + IM->Attrib[ATTR] = \ + (GLfloat (*)[4]) _mesa_malloc(IMM_SIZE * 4 * sizeof(GLfloat)); \ if (!IM->Attrib[ATTR]) { \ GET_CURRENT_CONTEXT(ctx); \ _mesa_error(ctx, GL_OUT_OF_MEMORY, "glVertex/Normal/etc"); \ diff --git a/src/mesa/tnl/t_imm_elt.c b/src/mesa/tnl/t_imm_elt.c index 08b74a139b3..f9a3069a171 100644 --- a/src/mesa/tnl/t_imm_elt.c +++ b/src/mesa/tnl/t_imm_elt.c @@ -584,8 +584,9 @@ static void init_translate_elt(void) #undef CLASS #undef ARGS #undef CHECK +#ifdef START #undef START - +#endif |