minor changes to silence warnings

This commit is contained in:
Brian Paul 2004-01-18 17:22:50 +00:00
parent 6a82d44d9c
commit 77d240858e
5 changed files with 7 additions and 5 deletions

View file

@ -185,7 +185,7 @@ i810CreateContext( const __GLcontextModes *mesaVis,
12,
I810_NR_TEX_REGIONS,
imesa->sarea->texList,
& imesa->sarea->texAge,
(unsigned *) & imesa->sarea->texAge, /* XXX we shouldn't cast! */
& imesa->swapped,
sizeof( struct i810_texture_object_t ),
(destroy_texture_object_t *) i810DestroyTexObj );
@ -327,7 +327,7 @@ i810DestroyContext(__DRIcontextPrivate *driContextPriv)
assert( is_empty_list( & imesa->swapped ) );
}
Xfree(imesa);
FREE(imesa);
}
}

View file

@ -245,7 +245,7 @@ GLboolean i830CreateContext( const __GLcontextModes *mesaVis,
12,
I830_NR_TEX_REGIONS,
imesa->sarea->texList,
& imesa->sarea->texAge,
(unsigned) & imesa->sarea->texAge, /* XXX shouldn't need cast! */
& imesa->swapped,
sizeof( struct i830_texture_object_t ),
(destroy_texture_object_t *) i830DestroyTexObj );
@ -415,7 +415,7 @@ void i830DestroyContext(__DRIcontextPrivate *driContextPriv)
assert( is_empty_list( & imesa->swapped ) );
}
Xfree (imesa);
FREE(imesa);
}
}

View file

@ -39,6 +39,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "api_arrayelt.h"
#include "enums.h"
#include "colormac.h"
#include "light.h"
#include "swrast/swrast.h"
#include "array_cache/acache.h"

View file

@ -38,6 +38,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include "mtypes.h"
#include "array_cache/acache.h"
#include "math/m_translate.h"
#include "tnl/tnl.h"
#include "tnl/t_pipeline.h"

View file

@ -495,7 +495,7 @@ tdfxDestroyContext( __DRIcontextPrivate *driContextPriv )
_mesa_destroy_context(fxMesa->glCtx);
/* free the tdfx context */
XFree( fxMesa );
FREE( fxMesa );
}
}