mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-20 17:51:02 +00:00
Fix -Wunused-function warnings
defined but not used
This commit is contained in:
parent
fc447ec426
commit
7f4bcf94ca
11 changed files with 35 additions and 6 deletions
|
@ -1332,6 +1332,7 @@ HeightForTrajectory
|
|||
Returns the maximum hieght of a given trajectory
|
||||
=====================
|
||||
*/
|
||||
#if 0
|
||||
static float HeightForTrajectory( const idVec3 &start, float zVel, float gravity ) {
|
||||
float maxHeight, t;
|
||||
|
||||
|
@ -1341,6 +1342,7 @@ static float HeightForTrajectory( const idVec3 &start, float zVel, float gravity
|
|||
|
||||
return maxHeight;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
=====================
|
||||
|
|
|
@ -76,6 +76,7 @@ void Session_RescanSI_f( const idCmdArgs &args ) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef ID_DEDICATED
|
||||
/*
|
||||
==================
|
||||
Session_Map_f
|
||||
|
@ -180,6 +181,7 @@ static void Session_TestMap_f( const idCmdArgs &args ) {
|
|||
sprintf( string, "devmap %s", map.c_str() );
|
||||
cmdSystem->BufferCommandText( CMD_EXEC_NOW, string );
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
==================
|
||||
|
@ -598,6 +600,7 @@ static void Session_DemoShot_f( const idCmdArgs &args ) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef ID_DEDICATED
|
||||
/*
|
||||
================
|
||||
Session_RecordDemo_f
|
||||
|
@ -731,6 +734,7 @@ Session_TimeCmdDemo_f
|
|||
static void Session_TimeCmdDemo_f( const idCmdArgs &args ) {
|
||||
sessLocal.TimeCmdDemo( args.Argv(1) );
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
================
|
||||
|
@ -745,6 +749,7 @@ static void Session_Disconnect_f( const idCmdArgs &args ) {
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef ID_DEDICATED
|
||||
#ifdef ID_DEMO_BUILD
|
||||
/*
|
||||
================
|
||||
|
@ -777,6 +782,7 @@ static void Session_ExitCmdDemo_f( const idCmdArgs &args ) {
|
|||
common->Printf( "Command demo exited at logIndex %i\n", sessLocal.logIndex );
|
||||
sessLocal.cmdDemoFile = NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
================
|
||||
|
|
|
@ -1331,6 +1331,7 @@ HeightForTrajectory
|
|||
Returns the maximum hieght of a given trajectory
|
||||
=====================
|
||||
*/
|
||||
#if 0
|
||||
static float HeightForTrajectory( const idVec3 &start, float zVel, float gravity ) {
|
||||
float maxHeight, t;
|
||||
|
||||
|
@ -1340,6 +1341,7 @@ static float HeightForTrajectory( const idVec3 &start, float zVel, float gravity
|
|||
|
||||
return maxHeight;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
=====================
|
||||
|
|
|
@ -223,6 +223,7 @@ R_AlphaRampImage
|
|||
Creates a 0-255 ramp image
|
||||
================
|
||||
*/
|
||||
#if 0
|
||||
static void R_AlphaRampImage( idImage *image ) {
|
||||
int x;
|
||||
byte data[256][4];
|
||||
|
@ -237,6 +238,7 @@ static void R_AlphaRampImage( idImage *image ) {
|
|||
image->GenerateImage( (byte *)data, 256, 1,
|
||||
TF_NEAREST, false, TR_CLAMP, TD_HIGH_QUALITY );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
@ -382,6 +384,7 @@ static void R_RGBA8Image( idImage *image ) {
|
|||
TF_DEFAULT, false, TR_REPEAT, TD_HIGH_QUALITY );
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void R_RGB8Image( idImage *image ) {
|
||||
byte data[DEFAULT_SIZE][DEFAULT_SIZE][4];
|
||||
|
||||
|
@ -394,6 +397,7 @@ static void R_RGB8Image( idImage *image ) {
|
|||
image->GenerateImage( (byte *)data, DEFAULT_SIZE, DEFAULT_SIZE,
|
||||
TF_DEFAULT, false, TR_REPEAT, TD_HIGH_QUALITY );
|
||||
}
|
||||
#endif
|
||||
|
||||
static void R_AlphaNotchImage( idImage *image ) {
|
||||
byte data[2][4];
|
||||
|
@ -448,6 +452,7 @@ static void R_AmbientNormalImage( idImage *image ) {
|
|||
}
|
||||
|
||||
|
||||
#if 0
|
||||
static void CreateSquareLight( void ) {
|
||||
byte *buffer;
|
||||
int x, y;
|
||||
|
@ -520,6 +525,7 @@ static void CreateFlashOff( void ) {
|
|||
|
||||
R_StaticFree( buffer );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -40,8 +40,6 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
glconfig_t glConfig;
|
||||
|
||||
static void GfxInfo_f( void );
|
||||
|
||||
const char *r_rendererArgs[] = { "best", "arb", "arb2", "Cg", "exp", "nv10", "nv20", "r200", NULL };
|
||||
|
||||
idCVar r_inhibitFragmentProgram( "r_inhibitFragmentProgram", "0", CVAR_RENDERER | CVAR_BOOL, "ignore the fragment program extension" );
|
||||
|
@ -1773,7 +1771,7 @@ void R_SetColorMappings( void ) {
|
|||
GfxInfo_f
|
||||
================
|
||||
*/
|
||||
void GfxInfo_f( const idCmdArgs &args ) {
|
||||
static void GfxInfo_f( const idCmdArgs &args ) {
|
||||
const char *fsstrings[] =
|
||||
{
|
||||
"windowed",
|
||||
|
|
|
@ -35,10 +35,12 @@ If you have questions concerning this license or the applicable additional terms
|
|||
|
||||
CGcontext cg_context;
|
||||
|
||||
#if 0
|
||||
static void cg_error_callback( void ) {
|
||||
CGerror i = cgGetError();
|
||||
common->Printf( "Cg error (%d): %s\n", i, cgGetErrorString(i) );
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
=========================================================================================
|
||||
|
|
|
@ -1223,6 +1223,7 @@ RB_ShowNormals
|
|||
Debugging tool
|
||||
=====================
|
||||
*/
|
||||
#if 0
|
||||
static void RB_AltShowNormals( drawSurf_t **drawSurfs, int numDrawSurfs ) {
|
||||
int i, j, k;
|
||||
drawSurf_t *drawSurf;
|
||||
|
@ -1290,6 +1291,7 @@ static void RB_AltShowNormals( drawSurf_t **drawSurfs, int numDrawSurfs ) {
|
|||
qglEnable( GL_DEPTH_TEST );
|
||||
qglEnable( GL_STENCIL_TEST );
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ static const char *EnumString( GLenum t )
|
|||
FloatData
|
||||
======================
|
||||
*/
|
||||
#if 0
|
||||
static const char *FloatData( const GLfloat *v, int count ) {
|
||||
static char buffer[8][1024];
|
||||
static int index = 0;
|
||||
|
@ -86,7 +87,8 @@ static const char *FloatData( const GLfloat *v, int count ) {
|
|||
|
||||
return name;
|
||||
}
|
||||
|
||||
#endif
|
||||
#
|
||||
#include "glimp_logfuncs.cpp"
|
||||
|
||||
dnl define(`log_func', `static `$1' APIENTRY log`$2'(`$3') {
|
||||
|
|
|
@ -1247,6 +1247,7 @@ static const char *EnumString( GLenum t )
|
|||
return buffer[oldIndex];
|
||||
}
|
||||
|
||||
#if 0
|
||||
static const char *FloatData( const GLfloat *v, int count ) {
|
||||
static char buffer[8][1024];
|
||||
static int index = 0;
|
||||
|
@ -1268,8 +1269,6 @@ static const char *FloatData( const GLfloat *v, int count ) {
|
|||
return name;
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
||||
// TODO: support GLbitfield
|
||||
|
||||
static void APIENTRY logClear(GLbitfield mask)
|
||||
|
|
|
@ -201,6 +201,7 @@ static uBrush_t *FinishBrush( void ) {
|
|||
AdjustEntityForOrigin
|
||||
================
|
||||
*/
|
||||
#if 0
|
||||
static void AdjustEntityForOrigin( uEntity_t *ent ) {
|
||||
primitive_t *prim;
|
||||
uBrush_t *b;
|
||||
|
@ -232,6 +233,7 @@ static void AdjustEntityForOrigin( uEntity_t *ent ) {
|
|||
CreateBrushWindings(b);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
=================
|
||||
|
|
|
@ -1058,6 +1058,7 @@ static void CreateOptTri( optVertex_t *first, optEdge_t *e1, optEdge_t *e2, optI
|
|||
}
|
||||
|
||||
// debugging tool
|
||||
#if 0
|
||||
static void ReportNearbyVertexes( const optVertex_t *v, const optIsland_t *island ) {
|
||||
const optVertex_t *ov;
|
||||
float d;
|
||||
|
@ -1077,6 +1078,7 @@ static void ReportNearbyVertexes( const optVertex_t *v, const optIsland_t *islan
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
====================
|
||||
|
@ -1749,6 +1751,7 @@ static void OptimizeIsland( optIsland_t *island ) {
|
|||
AddVertexToIsland_r
|
||||
================
|
||||
*/
|
||||
#if 0
|
||||
static void AddVertexToIsland_r( optVertex_t *vert, optIsland_t *island ) {
|
||||
optEdge_t *e;
|
||||
|
||||
|
@ -1783,6 +1786,7 @@ static void AddVertexToIsland_r( optVertex_t *vert, optIsland_t *island ) {
|
|||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
====================
|
||||
|
@ -1798,6 +1802,7 @@ doing this, because PointInSourceTris() can give a bad answer if
|
|||
the source list has triangles not used in the optimization
|
||||
====================
|
||||
*/
|
||||
#if 0
|
||||
static void SeparateIslands( optimizeGroup_t *opt ) {
|
||||
int i;
|
||||
optIsland_t island;
|
||||
|
@ -1820,6 +1825,7 @@ static void SeparateIslands( optimizeGroup_t *opt ) {
|
|||
common->Printf( "%6i islands\n", numIslands );
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static void DontSeparateIslands( optimizeGroup_t *opt ) {
|
||||
int i;
|
||||
|
@ -1852,6 +1858,7 @@ PointInSourceTris
|
|||
This is a sloppy bounding box check
|
||||
====================
|
||||
*/
|
||||
#if 0
|
||||
static bool PointInSourceTris( float x, float y, float z, optimizeGroup_t *opt ) {
|
||||
mapTri_t *tri;
|
||||
idBounds b;
|
||||
|
@ -1876,6 +1883,7 @@ static bool PointInSourceTris( float x, float y, float z, optimizeGroup_t *opt )
|
|||
}
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
====================
|
||||
|
|
Loading…
Reference in a new issue