(svn r2118) - Fix: Fix compilation with network disabled, and comment out some of the warnings (unused function)

This commit is contained in:
Darkvater 2005-04-02 00:17:16 +00:00
parent 043ac73b19
commit 35ff9d850c
3 changed files with 6 additions and 2 deletions

View File

@ -65,6 +65,7 @@ static uint16 FindNearestHangar(const Vehicle *v)
return index;
}
#if 0
// returns true if vehicle v have an airport in the schedule, that has a hangar
static bool HaveHangarInOrderList(Vehicle *v)
{
@ -82,6 +83,7 @@ static bool HaveHangarInOrderList(Vehicle *v)
return false;
}
#endif
int GetAircraftImage(Vehicle *v, byte direction)
{

View File

@ -327,9 +327,9 @@ const HalVideoDriver _dedicated_video_driver = {
static void *_dedicated_video_mem;
static const char *DedicatedVideoStart(const char **parm)
static const char *DedicatedVideoStart(const char * const *parm)
{
DEBUG(misc,0)("OpenTTD compiled without network-support, quiting...");
DEBUG(misc, 0) ("OpenTTD compiled without network-support, exiting...");
return NULL;
}

View File

@ -241,6 +241,7 @@ static void SlCopyBytes(void *ptr, size_t length)
}
}
#if 0
static void SlSkipBytes(size_t length)
{
while (length) {
@ -248,6 +249,7 @@ static void SlSkipBytes(size_t length)
length--;
}
}
#endif
uint SlGetFieldLength(void)
{