[54794] trunk/base/src/programs/daemondo
toby at macports.org
toby at macports.org
Sat Aug 1 22:17:06 PDT 2009
Revision: 54794
http://trac.macports.org/changeset/54794
Author: toby at macports.org
Date: 2009-08-01 22:17:03 -0700 (Sat, 01 Aug 2009)
Log Message:
-----------
Properly mark various arguments as unused.
Modified Paths:
--------------
trunk/base/src/programs/daemondo/Makefile.in
trunk/base/src/programs/daemondo/main.c
Modified: trunk/base/src/programs/daemondo/Makefile.in
===================================================================
--- trunk/base/src/programs/daemondo/Makefile.in 2009-08-02 05:00:35 UTC (rev 54793)
+++ trunk/base/src/programs/daemondo/Makefile.in 2009-08-02 05:17:03 UTC (rev 54794)
@@ -8,7 +8,8 @@
mandir= @mandir@
mandircat8= ${mandir}/cat8
-CFLAGS_QUICHEEATERS = -W -Wall -Wno-unused-parameter
+CFLAGS_QUICHEEATERS = -W -Wall
+CPPFLAGS += -I../..
SRCS = main.c
OBJS = main.o
LIBS = -framework CoreFoundation \
Modified: trunk/base/src/programs/daemondo/main.c
===================================================================
--- trunk/base/src/programs/daemondo/main.c 2009-08-02 05:00:35 UTC (rev 54793)
+++ trunk/base/src/programs/daemondo/main.c 2009-08-02 05:17:03 UTC (rev 54794)
@@ -47,7 +47,11 @@
com.apple.system.config.network_change
*/
-
+
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <unistd.h>
#include <signal.h>
@@ -707,7 +711,7 @@
void
-ScheduledRestartCallback(CFRunLoopTimerRef timer, void *info)
+ScheduledRestartCallback(CFRunLoopTimerRef timer UNUSED, void *info UNUSED)
{
if (verbosity >= 3)
LogMessage("Scheduled restart time has arrived.\n");
@@ -759,9 +763,9 @@
void
DynamicStoreChanged(
- SCDynamicStoreRef store,
+ SCDynamicStoreRef store UNUSED,
CFArrayRef changedKeys,
- void *info
+ void *info UNUSED
)
{
if (verbosity >= 3)
@@ -789,7 +793,7 @@
void
-PowerCallBack(void *x, io_service_t y, natural_t messageType, void *messageArgument)
+PowerCallBack(void *x UNUSED, io_service_t y UNUSED, natural_t messageType, void *messageArgument)
{
switch (messageType)
{
@@ -814,11 +818,11 @@
void
NotificationCenterCallback(
- CFNotificationCenterRef center,
- void *observer,
- CFStringRef name,
- const void *object,
- CFDictionaryRef userInfo)
+ CFNotificationCenterRef center UNUSED,
+ void *observer UNUSED,
+ CFStringRef name,
+ const void *object UNUSED,
+ CFDictionaryRef userInfo UNUSED)
{
if (verbosity >= 3)
{
@@ -832,7 +836,7 @@
void
-SignalCallback(CFMachPortRef port, void *msg, CFIndex size, void *info)
+SignalCallback(CFMachPortRef port UNUSED, void *msg, CFIndex size UNUSED, void *info UNUSED)
{
mach_msg_header_t* hdr = (mach_msg_header_t*)msg;
switch (hdr->msgh_id)
@@ -865,8 +869,8 @@
}
-void KQueueCallBack (CFSocketRef socketRef, CFSocketCallBackType type,
- CFDataRef address, const void *data, void *context)
+void KQueueCallBack (CFSocketRef socketRef, CFSocketCallBackType type UNUSED,
+ CFDataRef address UNUSED, const void *data UNUSED, void *context UNUSED)
{
int fd = CFSocketGetNative(socketRef);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090801/421c210c/attachment-0001.html>
More information about the macports-changes
mailing list