summaryrefslogtreecommitdiffstats
path: root/win/tkWinX.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-03 12:58:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-11-03 12:58:16 (GMT)
commitc594f7549d926ba7d3ad0f7ee0ad3638719870dd (patch)
treebcd38dec13f43f75cfe3b20dcfc22a8c27b50be3 /win/tkWinX.c
parent1e1f629ce1661dec695273cc771f3273bcd1cf22 (diff)
downloadtk-c594f7549d926ba7d3ad0f7ee0ad3638719870dd.zip
tk-c594f7549d926ba7d3ad0f7ee0ad3638719870dd.tar.gz
tk-c594f7549d926ba7d3ad0f7ee0ad3638719870dd.tar.bz2
More usage for Tcl_Size (internal TkEnsemble)
Diffstat (limited to 'win/tkWinX.c')
-rw-r--r--win/tkWinX.c22
1 files changed, 7 insertions, 15 deletions
diff --git a/win/tkWinX.c b/win/tkWinX.c
index a3cba71..9594cb0 100644
--- a/win/tkWinX.c
+++ b/win/tkWinX.c
@@ -119,12 +119,11 @@ void
TkGetServerInfo(
Tcl_Interp *interp, /* The server information is returned in this
* interpreter's result. */
- Tk_Window tkwin) /* Token for window; this selects a particular
+ TCL_UNUSED(Tk_Window)) /* Token for window; this selects a particular
* display and server. */
{
static char buffer[32]; /* Empty string means not initialized yet. */
OSVERSIONINFOW os;
- (void)tkwin;
if (!buffer[0]) {
GetVersionExW(&os);
@@ -282,7 +281,7 @@ TkWinXInit(
void
TkWinXCleanup(
- ClientData clientData)
+ void *clientData)
{
HINSTANCE hInstance = (HINSTANCE)clientData;
@@ -390,11 +389,9 @@ TkWinGetPlatformTheme(void)
const char *
TkGetDefaultScreenName(
- Tcl_Interp *dummy, /* Not used. */
+ TCL_UNUSED(Tcl_Interp *),
const char *screenName) /* If NULL, use default string. */
{
- (void)dummy;
-
if ((screenName == NULL) || (screenName[0] == '\0')) {
screenName = winScreenName;
}
@@ -707,12 +704,9 @@ TkClipCleanup(
int
XBell(
- Display *display,
- int percent)
+ TCL_UNUSED(Display *),
+ TCL_UNUSED(int))
{
- (void)display;
- (void)percent;
-
MessageBeep(MB_OK);
return Success;
}
@@ -1957,10 +1951,9 @@ Tk_SetCaretPos(
long
Tk_GetUserInactiveTime(
- Display *dpy) /* Ignored on Windows */
+ TCL_UNUSED(Display *))
{
LASTINPUTINFO li;
- (void)dpy;
li.cbSize = sizeof(li);
if (!GetLastInputInfo(&li)) {
@@ -1993,10 +1986,9 @@ Tk_GetUserInactiveTime(
void
Tk_ResetUserInactiveTime(
- Display *dpy)
+ TCL_UNUSED(Display *))
{
INPUT inp;
- (void)dpy;
inp.type = INPUT_MOUSE;
inp.mi.dx = 0;