Fixed compiler warnings.

This commit is contained in:
johns 2002-03-04 09:55:48 +00:00
parent 916b88236a
commit 4c7e321636
8 changed files with 16 additions and 31 deletions

View file

@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "freecraft.h"
#include "unit.h"

View file

@ -291,26 +291,6 @@ extern void InputMouseExit(const EventCallback*,unsigned);
/// Called to look for mouse timeout's
extern void InputMouseTimeout(const EventCallback*,unsigned);
//
// Chaos pur.
//
/// Called if right mouse button is pressed
extern void DoRightButton(int tx,int ty);
/// Cancel the building input mode
extern void CancelBuildingMode(void);
/// Draw messages as overlay over of the map
extern void DrawMessage(void);
/// Draw the player resource in resource line
extern void DrawResources(void);
/// Set message to display
extern void SetMessage( const char* fmt, ... );
/// Set message to display with event point
extern void SetMessageEvent( int x, int y, const char* fmt, ... );
/// Center view-point on last event message
/// Called to look for mouse timeout's
extern void InputMouseTimeout(const EventCallback*,unsigned);
//
// Chaos pur.
//

View file

@ -10,12 +10,11 @@
//
/**@name commands.c - Global command handler - network support. */
//
// (c) Copyright 2000,2001 by Lutz Sammer and Andreas Arens.
// (c) Copyright 2000,2002 by Lutz Sammer and Andreas Arens.
//
// FreeCraft is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation; either version 2 of the License,
// or (at your option) any later version.
// by the Free Software Foundation; only version 2 of the License.
//
// FreeCraft is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -78,7 +77,6 @@ local void CommandLog(const char* name,const Unit* unit,int flag,
unsigned x,unsigned y,const Unit* dest,const char* value,int num)
{
static FILE* logf;
extern unsigned SyncRandSeed;
if( !CommandLogEnabled ) {
return;

View file

@ -1011,7 +1011,8 @@ global void InputMouseMove(const EventCallback* callbacks,
** @param ticks Denotes time-stamp of video-system
**
*/
global void InputMouseExit(const EventCallback* callbacks, unsigned ticks)
global void InputMouseExit(const EventCallback* callbacks,
unsigned ticks __attribute__((unused)))
{
//FIXME: should we do anything here with ticks? don't know, but conform others
callbacks->MouseExit();

View file

@ -278,7 +278,8 @@ local void CclParseOrders(Unit* unit,SCM vector)
**
** @param list All options of the builded data.
*/
local void CclParseBuilded(Unit* unit,SCM list)
local void CclParseBuilded(Unit* unit __attribute__((unused)),
SCM list __attribute__((unused)))
{
DebugLevel0Fn("FIXME: builded\n");
}

View file

@ -132,8 +132,9 @@ local int SelectionColor(const Unit* unit,const UnitType* type)
** @param x Screen X position of the unit.
** @param y Screen Y position of the unit.
*/
global void DrawSelectionNone(const Unit* unit,const UnitType* type
,int x,int y)
global void DrawSelectionNone(const Unit* unit __attribute__((unused)),
const UnitType* type __attribute__((unused)),
int x __attribute__((unused)),int y __attribute__((unused)))
{
}

View file

@ -31,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "freecraft.h"
#include "video.h"

View file

@ -10,12 +10,11 @@
//
/**@name sprite.c - The general sprite functions. */
//
// (c) Copyright 2000,2001 by Lutz Sammer
// (c) Copyright 2000-2002 by Lutz Sammer, Stephan Rasenberg
//
// FreeCraft is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published
// by the Free Software Foundation; either version 2 of the License,
// or (at your option) any later version.
// by the Free Software Foundation; only version 2 of the License.
//
// FreeCraft is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@ -32,6 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "freecraft.h"
#include "video.h"
@ -46,10 +46,12 @@
-- Externals
----------------------------------------------------------------------------*/
#if 0 // FIXME: in intern_video.h
extern int ClipX1; /// current clipping top left
extern int ClipY1; /// current clipping top left
extern int ClipX2; /// current clipping bottom right
extern int ClipY2; /// current clipping bottom right
#endif
/*----------------------------------------------------------------------------
-- Variables