summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-18 13:43:03 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-12-18 13:43:03 (GMT)
commitc16ce96c1ed92581e6b9fe85882c726bfd35e147 (patch)
tree925edf72ef7d3123d4c4223a4ac4d60eeed962fa
parenta5aafcd65866c51e84616eb826dca2a1c8679f78 (diff)
parent321b9ffa79cccca2d0d78ea403a85c50edcc314c (diff)
downloadtk-c16ce96c1ed92581e6b9fe85882c726bfd35e147.zip
tk-c16ce96c1ed92581e6b9fe85882c726bfd35e147.tar.gz
tk-c16ce96c1ed92581e6b9fe85882c726bfd35e147.tar.bz2
Merge 8.7
-rw-r--r--generic/tkInt.h194
-rw-r--r--macosx/tkMacOSXClipboard.c1
-rw-r--r--macosx/tkMacOSXConfig.c10
-rw-r--r--macosx/tkMacOSXDialog.c6
-rw-r--r--macosx/tkMacOSXEmbed.c43
-rw-r--r--macosx/tkMacOSXInit.c11
-rw-r--r--macosx/tkMacOSXKeyEvent.c19
-rw-r--r--macosx/tkMacOSXNotify.c6
-rw-r--r--macosx/tkMacOSXPrint.c3
-rw-r--r--macosx/tkMacOSXScrlbr.c3
-rw-r--r--macosx/tkMacOSXSend.c6
-rw-r--r--xlib/xgc.c26
12 files changed, 99 insertions, 229 deletions
diff --git a/generic/tkInt.h b/generic/tkInt.h
index fb81cb5..540b121 100644
--- a/generic/tkInt.h
+++ b/generic/tkInt.h
@@ -1170,143 +1170,52 @@ MODULE_SCOPE void Ttk_TkDestroyedHandler(Tcl_Interp *interp);
* world:
*/
-MODULE_SCOPE int Tk_BellObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_BindObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_BindtagsObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_BusyObjCmd(void *clientData,
- Tcl_Interp *interp, Tcl_Size objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_ButtonObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_CanvasObjCmd(void *clientData,
- Tcl_Interp *interp, int argc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_CheckbuttonObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_ClipboardObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_ChooseColorObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_ChooseDirectoryObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_DestroyObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_EntryObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_EventObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_FrameObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_FocusObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_FontObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_GetOpenFileObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_GetSaveFileObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_GrabObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_GridObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_ImageObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_LabelObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_LabelframeObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_ListboxObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_LowerObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_MenuObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_MenubuttonObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_MessageBoxObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_MessageObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_PanedWindowObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_OptionObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_PackObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_PlaceObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_RadiobuttonObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_RaiseObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_ScaleObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_ScrollbarObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_SelectionObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_SendObjCmd(void *clientData,
- Tcl_Interp *interp,int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_SpinboxObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_TextObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_TkwaitObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_ToplevelObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_UpdateObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_WinfoObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
-MODULE_SCOPE int Tk_WmObjCmd(void *clientData, Tcl_Interp *interp,
- int objc, Tcl_Obj *const objv[]);
+MODULE_SCOPE Tcl_ObjCmdProc Tk_BellObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_BindObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_BindtagsObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc2 Tk_BusyObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_ButtonObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_CanvasObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_CheckbuttonObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_ClipboardObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_ChooseColorObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_ChooseDirectoryObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_DestroyObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_EntryObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_EventObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_FrameObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_FocusObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_FontObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_GetOpenFileObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_GetSaveFileObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_GrabObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_GridObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_ImageObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_LabelObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_LabelframeObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_ListboxObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_LowerObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_MenuObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_MenubuttonObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_MessageBoxObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_MessageObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_PanedWindowObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_OptionObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_PackObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_PlaceObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_RadiobuttonObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_RaiseObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_ScaleObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_ScrollbarObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_SelectionObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_SendObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_SpinboxObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_TextObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_TkwaitObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_ToplevelObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_UpdateObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_WinfoObjCmd;
+MODULE_SCOPE Tcl_ObjCmdProc Tk_WmObjCmd;
MODULE_SCOPE int TkSetGeometryContainer(Tcl_Interp *interp,
Tk_Window tkwin, const char *name);
@@ -1315,8 +1224,7 @@ MODULE_SCOPE void TkFreeGeometryContainer(Tk_Window tkwin,
MODULE_SCOPE void TkEventInit(void);
MODULE_SCOPE void TkRegisterObjTypes(void);
-MODULE_SCOPE int TkDeadAppObjCmd(void *clientData,
- Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]);
+MODULE_SCOPE Tcl_ObjCmdProc TkDeadAppObjCmd;
MODULE_SCOPE int TkCanvasGetCoordObj(Tcl_Interp *interp,
Tk_Canvas canvas, Tcl_Obj *obj,
double *doublePtr);
@@ -1444,16 +1352,12 @@ MODULE_SCOPE void Icu_Init(Tcl_Interp* interp);
* Unsupported commands.
*/
-MODULE_SCOPE int TkUnsupported1ObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj *const objv[]);
+MODULE_SCOPE Tcl_ObjCmdProc TkUnsupported1ObjCmd;
/*
* For Tktest.
*/
-MODULE_SCOPE int SquareObjCmd(void *clientData,
- Tcl_Interp *interp, int objc,
- Tcl_Obj * const objv[]);
+MODULE_SCOPE Tcl_ObjCmdProc SquareObjCmd;
#if !(defined(_WIN32) || defined(MAC_OSX_TK))
#define TkplatformtestInit(x) TCL_OK
#else
diff --git a/macosx/tkMacOSXClipboard.c b/macosx/tkMacOSXClipboard.c
index 272469e..f16ab0d 100644
--- a/macosx/tkMacOSXClipboard.c
+++ b/macosx/tkMacOSXClipboard.c
@@ -174,7 +174,6 @@ XSetSelectionOwner(
TCL_UNUSED(Time)) /* The current time? */
{
TkDisplay *dispPtr = TkGetDisplayList();
- (void)time;
if (dispPtr && selection == dispPtr->clipboardAtom) {
clipboardOwner = owner ? Tk_IdToWindow(display, owner) : NULL;
diff --git a/macosx/tkMacOSXConfig.c b/macosx/tkMacOSXConfig.c
index a85c6a9..b93c9a0 100644
--- a/macosx/tkMacOSXConfig.c
+++ b/macosx/tkMacOSXConfig.c
@@ -35,14 +35,10 @@
Tcl_Obj *
Tk_GetSystemDefault(
- Tk_Window tkwin, /* A window to use. */
- const char *dbName, /* The option database name. */
- const char *className) /* The name of the option class. */
+ TCL_UNUSED(Tk_Window), /* A window to use. */
+ TCL_UNUSED(const char *), /* The option database name. */
+ TCL_UNUSED(const char *)) /* The name of the option class. */
{
- (void)tkwin;
- (void)dbName;
- (void)className;
-
return NULL;
}
diff --git a/macosx/tkMacOSXDialog.c b/macosx/tkMacOSXDialog.c
index 48d1467..ca30267 100644
--- a/macosx/tkMacOSXDialog.c
+++ b/macosx/tkMacOSXDialog.c
@@ -233,11 +233,13 @@ getFileURL(
}
- (void)panel:(id)sender didChangeToDirectoryURL:(NSURL *)url {
- (void)sender; (void)url;
+ (void)sender;
+ (void)url;
}
- (BOOL)panel:(id)sender validateURL:(NSURL *)url error:(NSError **)outError {
- (void)sender; (void)url;
+ (void)sender;
+ (void)url;
*outError = nil;
return YES;
}
diff --git a/macosx/tkMacOSXEmbed.c b/macosx/tkMacOSXEmbed.c
index 7f89a50..ef4f44d 100644
--- a/macosx/tkMacOSXEmbed.c
+++ b/macosx/tkMacOSXEmbed.c
@@ -77,11 +77,10 @@ static void EmbedWindowDeleted(TkWindow *winPtr);
Window
Tk_MakeWindow(
Tk_Window tkwin,
- Window parent)
+ TCL_UNUSED(Window))
{
MacDrawable *macWin;
TkWindow *winPtr = (TkWindow *)tkwin;
- (void)parent;
/*
* If this window is marked as embedded then the window structure should
@@ -521,7 +520,7 @@ TkpClaimFocus(
int
TkpTestembedCmd(
- void *dummy, /* Main window for application. */
+ TCL_UNUSED(void *), /* Main window for application. */
Tcl_Interp *interp, /* Current interpreter. */
Tcl_Size objc, /* Number of arguments. */
Tcl_Obj *const objv[]) /* Argument strings. */
@@ -531,7 +530,6 @@ TkpTestembedCmd(
Tcl_DString dString;
char buffer[50];
Tcl_Interp *embeddedInterp = NULL, *parentInterp = NULL;
- (void)dummy;
if ((objc > 1) && (strcmp(Tcl_GetString(objv[1]), "all") == 0)) {
all = 1;
@@ -625,14 +623,11 @@ TkpTestembedCmd(
void
TkpRedirectKeyEvent(
- TkWindow *winPtr, /* Window to which the event was originally
+ TCL_UNUSED(TkWindow *), /* Window to which the event was originally
* reported. */
- XEvent *eventPtr) /* X event to redirect (should be KeyPress or
+ TCL_UNUSED(XEvent *)) /* X event to redirect (should be KeyPress or
* KeyRelease). */
{
- (void)winPtr;
- (void)eventPtr;
-
/* TODO: Implement this or decide it definitely needs no implementation */
}
@@ -1046,9 +1041,8 @@ EmbedGeometryRequest(
static void
EmbedSendConfigure(
- Container *containerPtr) /* Information about the embedding. */
+ TCL_UNUSED(Container *)) /* Information about the embedding. */
{
- (void)containerPtr;
}
/*
@@ -1157,40 +1151,31 @@ EmbedWindowDeleted(
void
TkpShowBusyWindow(
- TkBusy busy)
+ TCL_UNUSED(TkBusy))
{
- (void)busy;
}
void
TkpHideBusyWindow(
- TkBusy busy)
+ TCL_UNUSED(TkBusy))
{
- (void)busy;
}
void
TkpMakeTransparentWindowExist(
- Tk_Window tkwin, /* Token for window. */
- Window parent) /* Parent window. */
+ TCL_UNUSED(Tk_Window), /* Token for window. */
+ TCL_UNUSED(Window)) /* Parent window. */
{
- (void)tkwin;
- (void)parent;
}
void
TkpCreateBusy(
- Tk_FakeWin *winPtr,
- Tk_Window tkRef,
- Window* parentPtr,
- Tk_Window tkParent,
- TkBusy busy)
+ TCL_UNUSED(Tk_FakeWin *),
+ TCL_UNUSED(Tk_Window),
+ TCL_UNUSED(Window *),
+ TCL_UNUSED(Tk_Window),
+ TCL_UNUSED(TkBusy))
{
- (void)winPtr;
- (void)tkRef;
- (void)parentPtr;
- (void)tkParent;
- (void)busy;
}
/*
diff --git a/macosx/tkMacOSXInit.c b/macosx/tkMacOSXInit.c
index d003933..03a05fc 100644
--- a/macosx/tkMacOSXInit.c
+++ b/macosx/tkMacOSXInit.c
@@ -33,10 +33,8 @@ static char scriptPath[PATH_MAX + 1] = "";
* Forward declarations...
*/
-static int TkMacOSXGetAppPathObjCmd(TCL_UNUSED(void *), Tcl_Interp *ip,
- int objc, Tcl_Obj *const objv[]);
-static int TkMacOSVersionObjCmd(void *cd, Tcl_Interp *ip,
- int objc, Tcl_Obj *const objv[]);
+static Tcl_ObjCmdProc TkMacOSXGetAppPathObjCmd;
+static Tcl_ObjCmdProc TkMacOSVersionObjCmd;
#pragma mark TKApplication(TKInit)
@@ -910,11 +908,10 @@ TkMacOSXDefaultStartupScript(void)
MODULE_SCOPE void*
TkMacOSXGetNamedSymbol(
- const char* module,
- const char* symbol)
+ TCL_UNUSED(const char *),
+ const char *symbol)
{
void *addr = dlsym(RTLD_NEXT, symbol);
- (void)module;
if (!addr) {
(void) dlerror(); /* Clear dlfcn error state */
diff --git a/macosx/tkMacOSXKeyEvent.c b/macosx/tkMacOSXKeyEvent.c
index c9449da..4056961 100644
--- a/macosx/tkMacOSXKeyEvent.c
+++ b/macosx/tkMacOSXKeyEvent.c
@@ -716,17 +716,13 @@ int
XGrabKeyboard(
Display* display,
Window grab_window,
- Bool owner_events,
- int pointer_mode,
- int keyboard_mode,
- Time time)
+ TCL_UNUSED(Bool),
+ TCL_UNUSED(int),
+ TCL_UNUSED(int),
+ TCL_UNUSED(Time))
{
keyboardGrabWinPtr = Tk_IdToWindow(display, grab_window);
TkWindow *captureWinPtr = (TkWindow *) TkpGetCapture();
- (void)owner_events;
- (void)pointer_mode;
- (void)keyboard_mode;
- (void)time;
if (keyboardGrabWinPtr && captureWinPtr) {
NSWindow *w = TkMacOSXGetNSWindowForDrawable(grab_window);
@@ -766,12 +762,9 @@ XGrabKeyboard(
int
XUngrabKeyboard(
- Display* display,
- Time time)
+ TCL_UNUSED(Display *),
+ TCL_UNUSED(Time))
{
- (void)display;
- (void)time;
-
if (modalSession) {
[NSApp endModalSession:modalSession];
modalSession = nil;
diff --git a/macosx/tkMacOSXNotify.c b/macosx/tkMacOSXNotify.c
index a821f59..34e0e0e 100644
--- a/macosx/tkMacOSXNotify.c
+++ b/macosx/tkMacOSXNotify.c
@@ -293,9 +293,8 @@ Tk_MacOSXSetupTkNotifier(void)
static void
TkMacOSXNotifyExitHandler(
- void *dummy) /* Not used. */
+ TCL_UNUSED(void *)) /* Not used. */
{
- (void)dummy;
TSD_INIT();
Tcl_DeleteEventSource(TkMacOSXEventsSetupProc,
@@ -425,11 +424,10 @@ static const Tcl_Time zeroBlockTime = { 0, 0 };
static void
TkMacOSXEventsSetupProc(
- void *dummy,
+ TCL_UNUSED(void *),
int flags)
{
NSString *runloopMode = [[NSRunLoop currentRunLoop] currentMode];
- (void)dummy;
/*
* runloopMode will be nil if we are in a Tcl event loop.
diff --git a/macosx/tkMacOSXPrint.c b/macosx/tkMacOSXPrint.c
index 0b1b97a..9797bfa 100644
--- a/macosx/tkMacOSXPrint.c
+++ b/macosx/tkMacOSXPrint.c
@@ -31,8 +31,7 @@ CFStringRef urlFile = NULL;
/*Forward declaration of functions.*/
static Tcl_ObjCmdProc StartPrint;
static OSStatus FinishPrint(NSString *file, int buttonValue);
-static int MakePDF(void *clientData, Tcl_Interp *ip,
- int objc, Tcl_Obj *const objv[]);
+static Tcl_ObjCmdProc MakePDF;
int MacPrint_Init(Tcl_Interp * interp);
/* Delegate class for print dialogs. */
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c
index eb1c99a..ec54d42 100644
--- a/macosx/tkMacOSXScrlbr.c
+++ b/macosx/tkMacOSXScrlbr.c
@@ -484,9 +484,8 @@ TkpDestroyScrollbar(
void
TkpConfigureScrollbar(
- TkScrollbar *scrollPtr)
+ TCL_UNUSED(TkScrollbar *))
{
- (void)scrollPtr;
/* empty */
}
diff --git a/macosx/tkMacOSXSend.c b/macosx/tkMacOSXSend.c
index 321e1d5..9b18424 100644
--- a/macosx/tkMacOSXSend.c
+++ b/macosx/tkMacOSXSend.c
@@ -471,12 +471,11 @@ Tk_SendObjCmd(
int
TkGetInterpNames(
Tcl_Interp *interp, /* Interpreter for returning a result. */
- Tk_Window tkwin) /* Window whose display is to be used for the
+ TCL_UNUSED(Tk_Window)) /* Window whose display is to be used for the
* lookup. */
{
Tcl_Obj *listObjPtr;
RegisteredInterp *riPtr;
- (void)tkwin;
listObjPtr = Tcl_NewListObj(0, NULL);
riPtr = interpListPtr;
@@ -509,9 +508,8 @@ TkGetInterpNames(
static int
SendInit(
- Tcl_Interp *dummy) /* Not used */
+ TCL_UNUSED(Tcl_Interp *)) /* Not used */
{
- (void)dummy;
return TCL_OK;
}
diff --git a/xlib/xgc.c b/xlib/xgc.c
index 2c5fcaa..da41d58 100644
--- a/xlib/xgc.c
+++ b/xlib/xgc.c
@@ -649,16 +649,16 @@ XSetICFocus(
Window
XCreateWindow(
TCL_UNUSED(Display *),
- TCL_UNUSED(Window),
- TCL_UNUSED(int),
- TCL_UNUSED(int),
+ TCL_UNUSED(Window),
+ TCL_UNUSED(int),
+ TCL_UNUSED(int),
TCL_UNUSED(unsigned int),
- TCL_UNUSED(unsigned int),
TCL_UNUSED(unsigned int),
- TCL_UNUSED(int),
- TCL_UNUSED(unsigned int),
+ TCL_UNUSED(unsigned int),
+ TCL_UNUSED(int),
+ TCL_UNUSED(unsigned int),
TCL_UNUSED(Visual *),
- TCL_UNUSED(unsigned long),
+ TCL_UNUSED(unsigned long),
TCL_UNUSED(XSetWindowAttributes *))
{
return 0;
@@ -667,8 +667,8 @@ XCreateWindow(
int
XPointInRegion(
TCL_UNUSED(Region),
- TCL_UNUSED(int),
- TCL_UNUSED(int))
+ TCL_UNUSED(int),
+ TCL_UNUSED(int))
{
return 0;
}
@@ -676,8 +676,8 @@ XPointInRegion(
int
XUnionRegion(
TCL_UNUSED(Region),
- TCL_UNUSED(Region),
- TCL_UNUSED(Region))
+ TCL_UNUSED(Region),
+ TCL_UNUSED(Region))
{
return 0;
}
@@ -685,8 +685,8 @@ XUnionRegion(
Region
XPolygonRegion(
TCL_UNUSED(XPoint *),
- TCL_UNUSED(int),
- TCL_UNUSED(int))
+ TCL_UNUSED(int),
+ TCL_UNUSED(int))
{
return 0;
}