diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-02-07 14:01:40 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-02-07 14:01:40 (GMT) |
commit | 1e218f90dab9db97b0f7b9c3013c78b871e11b36 (patch) | |
tree | 912ff82a558de9bcc791b4a258ecb3ae9813edf0 /win/tkWinClipboard.c | |
parent | 3b6539c93da9d08acd3779c6f96da23d646acb21 (diff) | |
download | tk-1e218f90dab9db97b0f7b9c3013c78b871e11b36.zip tk-1e218f90dab9db97b0f7b9c3013c78b871e11b36.tar.gz tk-1e218f90dab9db97b0f7b9c3013c78b871e11b36.tar.bz2 |
Use more TCL_UNUSED() macro's in stead of (void) casts
Diffstat (limited to 'win/tkWinClipboard.c')
-rw-r--r-- | win/tkWinClipboard.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/win/tkWinClipboard.c b/win/tkWinClipboard.c index 840938d..1cf2219 100644 --- a/win/tkWinClipboard.c +++ b/win/tkWinClipboard.c @@ -4,7 +4,7 @@ * This file contains functions for managing the clipboard. * * Copyright (c) 1995-1997 Sun Microsystems, Inc. - * Copyright (c) 1998-2000 by Scriptics Corporation. + * Copyright (c) 1998-2000 Scriptics Corporation. * * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. @@ -227,15 +227,13 @@ TkSelGetSelection( int XSetSelectionOwner( - Display *display, + TCL_UNUSED(Display *), Atom selection, Window owner, - Time time) + TCL_UNUSED(Time)) { HWND hwnd = owner ? TkWinGetHWND(owner) : NULL; Tk_Window tkwin; - (void)display; - (void)time; /* * This is a gross hack because the Tk_InternAtom interface is broken. It @@ -277,7 +275,7 @@ XSetSelectionOwner( void TkWinClipboardRender( TkDisplay *dispPtr, - UINT format) + TCL_UNUSED(UINT)) { TkClipboardTarget *targetPtr; TkClipboardBuffer *cbPtr; @@ -285,7 +283,6 @@ TkWinClipboardRender( char *buffer, *p, *rawText, *endPtr; int length; Tcl_DString ds; - (void)format; for (targetPtr = dispPtr->clipTargetPtr; targetPtr != NULL; targetPtr = targetPtr->nextPtr) { @@ -369,10 +366,9 @@ TkWinClipboardRender( void TkSelUpdateClipboard( TkWindow *winPtr, - TkClipboardTarget *targetPtr) + TCL_UNUSED(TkClipboardTarget *)) { HWND hwnd = TkWinGetHWND(winPtr->window); - (void)targetPtr; UpdateClipboard(hwnd); } @@ -453,9 +449,8 @@ TkSelEventProc( void TkSelPropProc( - XEvent *eventPtr) /* X PropertyChange event. */ + TCL_UNUSED(XEvent *)) /* X PropertyChange event. */ { - (void)eventPtr; } /* |