summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2020-03-09 14:40:27 (GMT)
committerdgp <dgp@users.sourceforge.net>2020-03-09 14:40:27 (GMT)
commit903b630e4f9c05afe14af13f7e5d47f2bd8a268a (patch)
treee493a6b0c94f04e04df02d1a2974333c3ff325d4 /macosx
parent6c055366d2331b73396ec9d445cabb089c25b6c3 (diff)
downloadtcl-903b630e4f9c05afe14af13f7e5d47f2bd8a268a.zip
tcl-903b630e4f9c05afe14af13f7e5d47f2bd8a268a.tar.gz
tcl-903b630e4f9c05afe14af13f7e5d47f2bd8a268a.tar.bz2
Bring TCL_UNUSED to macosx sources.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tclMacOSXBundle.c3
-rw-r--r--macosx/tclMacOSXNotify.c14
2 files changed, 6 insertions, 11 deletions
diff --git a/macosx/tclMacOSXBundle.c b/macosx/tclMacOSXBundle.c
index 81d8d04..0c68e2d 100644
--- a/macosx/tclMacOSXBundle.c
+++ b/macosx/tclMacOSXBundle.c
@@ -197,7 +197,7 @@ Tcl_MacOSXOpenBundleResources(
int
Tcl_MacOSXOpenVersionedBundleResources(
- Tcl_Interp *dummy,
+ TCL_UNUSED(Tcl_Interp *),
const char *bundleName,
const char *bundleVersion,
int hasResourceFile,
@@ -208,7 +208,6 @@ Tcl_MacOSXOpenVersionedBundleResources(
CFBundleRef bundleRef, versionedBundleRef = NULL;
CFStringRef bundleNameRef;
CFURLRef libURL;
- (void)dummy;
libraryPath[0] = '\0';
diff --git a/macosx/tclMacOSXNotify.c b/macosx/tclMacOSXNotify.c
index 1523400..8f1dbba 100644
--- a/macosx/tclMacOSXNotify.c
+++ b/macosx/tclMacOSXNotify.c
@@ -755,7 +755,7 @@ StartNotifierThread(void)
void
Tcl_FinalizeNotifier(
- ClientData clientData) /* Not used. */
+ ClientData clientData)
{
ThreadSpecificData *tsdPtr;
@@ -942,11 +942,9 @@ Tcl_SetTimer(
static void
TimerWakeUp(
- CFRunLoopTimerRef timer,
- void *info)
+ TCL_UNUSED(CFRunLoopTimerRef),
+ TCL_UNUSED(ClientData))
{
- (void)timer;
- (void)info;
}
/*
@@ -1450,12 +1448,11 @@ QueueFileEvents(
static void
UpdateWaitingListAndServiceEvents(
- CFRunLoopObserverRef observer,
+ TCL_UNUSED(CFRunLoopObserverRef),
CFRunLoopActivity activity,
void *info)
{
ThreadSpecificData *tsdPtr = (ThreadSpecificData *)info;
- (void)observer;
if (tsdPtr->sleeping) {
return;
@@ -1830,14 +1827,13 @@ TclUnixWaitForFile(
static TCL_NORETURN void
NotifierThreadProc(
- ClientData dummy) /* Not used. */
+ TCL_UNUSED(ClientData))
{
ThreadSpecificData *tsdPtr;
fd_set readableMask, writableMask, exceptionalMask;
int i, numFdBits = 0, polling;
struct timeval poll = {0., 0.}, *timePtr;
char buf[2];
- (void)dummy;
/*
* Look for file events and report them to interested threads.