From faabf7d64658ae47842b4ccabdb4b68513f3cdf7 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Sat, 12 Jul 2014 16:07:46 +0200 Subject: fix a bunch of compiler warnings --- src/renderer/tr_bsp.c | 4 +++- src/renderer/tr_scene.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/renderer') diff --git a/src/renderer/tr_bsp.c b/src/renderer/tr_bsp.c index 563bb36..059f9b9 100644 --- a/src/renderer/tr_bsp.c +++ b/src/renderer/tr_bsp.c @@ -264,6 +264,8 @@ static void R_LoadVisibility( lump_t *l ) { //=============================================================================== +#define LL(x) x=LittleLong(x) + /* =============== ShaderForShaderNum @@ -273,7 +275,7 @@ static shader_t *ShaderForShaderNum( int shaderNum, int lightmapNum ) { shader_t *shader; dshader_t *dsh; - shaderNum = LittleLong( shaderNum ); + LL( shaderNum ); if ( shaderNum < 0 || shaderNum >= s_worldData.numShaders ) { ri.Error( ERR_DROP, "ShaderForShaderNum: bad num %i", shaderNum ); } diff --git a/src/renderer/tr_scene.c b/src/renderer/tr_scene.c index 232cb68..973d4ac 100644 --- a/src/renderer/tr_scene.c +++ b/src/renderer/tr_scene.c @@ -220,7 +220,7 @@ void RE_AddRefEntityToScene( const refEntity_t *ent ) { } return; } - if ( ent->reType < 0 || ent->reType >= RT_MAX_REF_ENTITY_TYPE ) { + if ( (int)ent->reType < 0 || ent->reType >= RT_MAX_REF_ENTITY_TYPE ) { ri.Error( ERR_DROP, "RE_AddRefEntityToScene: bad reType %i", ent->reType ); } -- cgit