Fixing compiler warnings

This commit is contained in:
Richard Allen 2012-10-13 18:56:19 +00:00
parent 0fd659c5c2
commit d0021605af
2 changed files with 10 additions and 10 deletions

View file

@ -8427,7 +8427,7 @@ static void UI_BuildQ3Model_List(void)
if (Q_stricmpn(skinname, "icon_", 5) == 0
&& !(Q_stricmp(skinname, "icon_blue") == 0 || Q_stricmp(skinname, "icon_red") == 0)) {
if (Q_stricmp(skinname, "icon_default") == 0) {
Com_sprintf(scratch, sizeof(scratch), dirptr);
Com_sprintf(scratch, sizeof(scratch), "%s", dirptr);
} else {
Com_sprintf(scratch, sizeof(scratch), "%s/%s", dirptr, skinname + 5);
}
@ -8441,7 +8441,7 @@ static void UI_BuildQ3Model_List(void)
}
if (!dirty) {
Com_sprintf(uiInfo.q3HeadNames[uiInfo.q3HeadCount],
sizeof(uiInfo.q3HeadNames[uiInfo.q3HeadCount]), scratch);
sizeof(uiInfo.q3HeadNames[uiInfo.q3HeadCount]), "%s", scratch);
//Makro - see if this model is the selected one
if (!strcmp(currentSkin, scratch)) {
uiInfo.q3SelectedHead = uiInfo.q3HeadCount;
@ -8574,7 +8574,7 @@ void _UI_Init(qboolean inGameLoad)
//Makro - added
char info[MAX_INFO_STRING];
//
int start;
// int start;
qboolean needRestart = qfalse;
//uiInfo.inGameLoad = inGameLoad;
@ -8713,7 +8713,7 @@ void _UI_Init(qboolean inGameLoad)
uiInfo.uiDC.max[0] = SCREEN_WIDTH - uiInfo.uiDC.min[0];
uiInfo.uiDC.max[1] = SCREEN_HEIGHT;
start = trap_Milliseconds();
// start = trap_Milliseconds();
UI_ExportSymbols();

View file

@ -416,7 +416,7 @@ void String_Init( void )
=================
PC_SourceWarning
=================
*/
static __attribute__ ((format (printf, 2, 3))) void PC_SourceWarning(int handle, char *format, ...) {
int line;
char filename[128];
@ -433,7 +433,7 @@ static __attribute__ ((format (printf, 2, 3))) void PC_SourceWarning(int handle,
Com_Printf(S_COLOR_YELLOW "WARNING: %s, line %d: %s\n", filename, line, string);
}
*/
/*
=================
PC_SourceError
@ -2520,17 +2520,17 @@ int Item_Slider_OverSlider(itemDef_t * item, float x, float y)
int Item_ListBox_OverLB(itemDef_t * item, float x, float y)
{
rectDef_t r;
listBoxDef_t *listPtr;
// listBoxDef_t *listPtr;
int thumbstart;
int count;
// int count;
float p[2];
r.hasVectors = item->window.rect.hasVectors;
Vector2Copy(item->window.rect.u, r.u);
Vector2Copy(item->window.rect.v, r.v);
count = DC->feederCount(item->special);
listPtr = (listBoxDef_t *) item->typeData;
// count = DC->feederCount(item->special);
// listPtr = (listBoxDef_t *) item->typeData;
//horizontal
if (item->window.flags & WINDOW_HORIZONTAL) {
//vectors?