Permalink
Browse files

remove some warnings

  • Loading branch information...
eigentone11 committed Jun 17, 2011
1 parent b9c472c commit be1e6bc5bb1295964ce4638ae0ec49df8a808e88
Showing with 10 additions and 10 deletions.
  1. +3 −3 Client Logger/LoggerClient.h
  2. +7 −7 Client Logger/LoggerClient.m
@@ -131,15 +131,15 @@ extern "C" {
// Functions to set and get the default logger
extern void LoggerSetDefaultLogger(Logger *aLogger);
-extern Logger *LoggerGetDefaultLogger();
+extern Logger *LoggerGetDefaultLogger(void);
// Initialize a new logger, set as default logger if this is the first one
// Options default to:
// - logging to console = NO
// - buffer until connection = YES
// - browse Bonjour = YES
// - browse only locally on Bonjour = YES
-extern Logger* LoggerInit();
+extern Logger* LoggerInit(void);
// Set logger options if you don't want the default options (see above)
extern void LoggerSetOptions(Logger *logger, uint32_t options);
@@ -219,7 +219,7 @@ extern void LogStartBlock(NSString *format, ...);
extern void LogStartBlockTo(Logger *logger, NSString *format, ...);
// Mark the end of a block
-extern void LogEndBlock();
+extern void LogEndBlock(void);
extern void LogEndBlockTo(Logger *logger);
#ifdef __cplusplus
@@ -148,7 +148,7 @@
// Encoding functions
static void LoggerPushClientInfoToFrontOfQueue(Logger *logger);
static void LoggerMessageAddTimestampAndThreadID(CFMutableDataRef encoder);
-static void LogDataInternal(Logger *logger, NSString *domain, int level, NSData *data, int binaryOrImageType);
+static void LogDataInternal(Logger *logger, NSString *domain, int level, NSData *data, int binaryOrImageType) __attribute__((unused));
static CFMutableDataRef LoggerMessageCreate();
static void LoggerMessageUpdateDataHeader(CFMutableDataRef data);
@@ -167,7 +167,7 @@
#pragma mark -
#pragma mark Default logger
// -----------------------------------------------------------------------------
-void LoggerSetDefautLogger(Logger *defaultLogger)
+static __attribute__((unused)) void LoggerSetDefautLogger(Logger *defaultLogger)
{
pthread_mutex_lock(&sDefaultLoggerMutex);
sDefaultLogger = defaultLogger;
@@ -196,7 +196,7 @@ void LoggerSetDefautLogger(Logger *defaultLogger)
#pragma mark -
#pragma mark Initialization and setup
// -----------------------------------------------------------------------------
-Logger *LoggerInit()
+Logger *LoggerInit(void)
{
LOGGERDBG(CFSTR("LoggerInit defaultLogger=%p"), sDefaultLogger);
@@ -379,7 +379,7 @@ void LoggerFlush(Logger *logger, BOOL waitForConnection)
}
}
-static void LoggerDbg(CFStringRef format, ...)
+static __attribute__((unused)) void LoggerDbg(CFStringRef format, ...)
{
// Internal debugging function
// (what do you think, that we use the Logger to debug itself ??)
@@ -1588,7 +1588,7 @@ static CFMutableDataRef LoggerMessageCreate()
return data;
}
-static void LoggerMessageAddInt16(CFMutableDataRef data, int16_t anInt, int key)
+static __attribute__((unused)) void LoggerMessageAddInt16(CFMutableDataRef data, int16_t anInt, int key)
{
uint16_t partData = htonl(anInt);
uint8_t keyAndType[2] = {(uint8_t)key, PART_TYPE_INT16};
@@ -1606,7 +1606,7 @@ static void LoggerMessageAddInt32(CFMutableDataRef data, int32_t anInt, int key)
LoggerMessageUpdateDataHeader(data);
}
-static void LoggerMessageAddInt64(CFMutableDataRef data, int64_t anInt, int key)
+static __attribute__((unused)) void LoggerMessageAddInt64(CFMutableDataRef data, int64_t anInt, int key)
{
uint32_t partData[2] = {htonl((uint32_t)(anInt >> 32)), htonl((uint32_t)anInt)};
uint8_t keyAndType[2] = {(uint8_t)key, PART_TYPE_INT64};
@@ -2183,7 +2183,7 @@ void LogEndBlockTo(Logger *logger)
}
}
-void LogEndBlock()
+void LogEndBlock(void)
{
LogEndBlockTo(NULL);
}

0 comments on commit be1e6bc

Please sign in to comment.