Fix two warnings in scrap.c in Mac OS X.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/trunk@9316 4a71c877-e1ca-e34f-864e-861f7616d084
master
Guangcong Luo 2010-01-18 05:07:45 +00:00 committed by Git SVN Gateway
parent 211781cbfa
commit 1685f723be
1 changed files with 4 additions and 0 deletions

View File

@ -189,6 +189,7 @@ convert_data(int type, char *dst, char *src, int srclen)
}
/* Convert scrap data to internal format */
#if (defined(WZ_WS_X11) || defined(WZ_WS_WIN) || defined(WZ_WS_QNX))
static int
convert_scrap(int type, char *dst, char *src, int srclen)
{
@ -255,6 +256,7 @@ switch (type)
}
return dstlen;
}
#endif
#if defined(WZ_WS_X11)
/* The system message filter function -- handle clipboard messages */
@ -331,7 +333,9 @@ put_scrap(int type, int srclen, char *src)
{
scrap_type format;
int dstlen;
#if (defined(WZ_WS_X11) || defined(WZ_WS_WIN) || defined(WZ_WS_QNX))
char *dst;
#endif
format = convert_format(type);
dstlen = convert_data(type, NULL, src, srclen);