Fix warnings found in Xcode

This commit is contained in:
Bernhard Miklautz 2014-07-23 20:22:30 +02:00
parent 352dbd52e2
commit a9eed46e38
6 changed files with 16 additions and 6 deletions

View File

@ -36,6 +36,7 @@
#include "cliprdr_main.h" #include "cliprdr_main.h"
#include "cliprdr_format.h" #include "cliprdr_format.h"
#ifdef WITH_DEBUG_CLIPRDR
static const char* const CB_MSG_TYPE_STRINGS[] = static const char* const CB_MSG_TYPE_STRINGS[] =
{ {
"", "",
@ -51,6 +52,7 @@ static const char* const CB_MSG_TYPE_STRINGS[] =
"CB_LOCK_CLIPDATA" "CB_LOCK_CLIPDATA"
"CB_UNLOCK_CLIPDATA" "CB_UNLOCK_CLIPDATA"
}; };
#endif
CliprdrClientContext* cliprdr_get_client_interface(cliprdrPlugin* cliprdr) CliprdrClientContext* cliprdr_get_client_interface(cliprdrPlugin* cliprdr)
{ {

View File

@ -32,6 +32,7 @@
#include "transport.h" #include "transport.h"
#ifdef WITH_DEBUG_NEGO
static const char* const NEGO_STATE_STRINGS[] = static const char* const NEGO_STATE_STRINGS[] =
{ {
"NEGO_STATE_INITIAL", "NEGO_STATE_INITIAL",
@ -55,6 +56,7 @@ static const char PROTOCOL_SECURITY_STRINGS[9][4] =
"UNK", "UNK",
"EXT" "EXT"
}; };
#endif // WITH_DEBUG_NEGO
BOOL nego_security_connect(rdpNego* nego); BOOL nego_security_connect(rdpNego* nego);

View File

@ -190,10 +190,14 @@ BOOL SetWaitableTimer(HANDLE hTimer, const LARGE_INTEGER* lpDueTime, LONG lPerio
{ {
ULONG Type; ULONG Type;
PVOID Object; PVOID Object;
int status = 0;
WINPR_TIMER* timer; WINPR_TIMER* timer;
LONGLONG seconds = 0; #ifdef WITH_POSIX_TIMER
LONGLONG seconds = 0;
LONGLONG nanoseconds = 0; LONGLONG nanoseconds = 0;
#ifdef HAVE_TIMERFD_H
int status = 0;
#endif // HAVE_TIMERFD_H
#endif // WITH_POSIX_TIMER
if (!winpr_Handle_GetInfo(hTimer, &Type, &Object)) if (!winpr_Handle_GetInfo(hTimer, &Type, &Object))
return FALSE; return FALSE;

View File

@ -901,8 +901,8 @@ typedef struct _trio_userdef_t {
* Internal Variables * Internal Variables
* *
*************************************************************************/ *************************************************************************/
/* Unused but kept for reference */
static TRIO_CONST char rcsid[] = "@(#)$Id: trio.c,v 1.131 2010/09/12 11:08:08 breese Exp $"; /* static TRIO_CONST char rcsid[] = "@(#)$Id: trio.c,v 1.131 2010/09/12 11:08:08 breese Exp $"; */
#if TRIO_FEATURE_FLOAT #if TRIO_FEATURE_FLOAT
/* /*

View File

@ -227,7 +227,8 @@
*/ */
#if !defined(TRIO_EMBED_NAN) #if !defined(TRIO_EMBED_NAN)
static TRIO_CONST char rcsid[] = "@(#)$Id: trionan.c,v 1.33 2005/05/29 11:57:25 breese Exp $"; /* Unused but kept for reference */
/* static TRIO_CONST char rcsid[] = "@(#)$Id: trionan.c,v 1.33 2005/05/29 11:57:25 breese Exp $"; */
#endif #endif
#if defined(TRIO_FUNC_INTERNAL_MAKE_DOUBLE) \ #if defined(TRIO_FUNC_INTERNAL_MAKE_DOUBLE) \

View File

@ -160,7 +160,8 @@ struct _trio_string_t
*/ */
#if !defined(TRIO_EMBED_STRING) #if !defined(TRIO_EMBED_STRING)
static TRIO_CONST char rcsid[] = "@(#)$Id: triostr.c,v 1.36 2010/01/26 13:02:02 breese Exp $"; /* Unused but kept for reference */
/* static TRIO_CONST char rcsid[] = "@(#)$Id: triostr.c,v 1.36 2010/01/26 13:02:02 breese Exp $"; */
#endif #endif
/************************************************************************* /*************************************************************************