summaryrefslogtreecommitdiff
path: root/src/Error.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-07-07 12:13:17 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-07-07 12:14:27 -0400
commit61df064c511bb93b49a67a2d2b3c4886d650eeda (patch)
tree8c08b6978bd43852c411353de1d1e1507e8a9288 /src/Error.c
parent1229be61dabfcbba555ec34fd43da21e94ed7f06 (diff)
downloadxorg-lib-libXt-61df064c511bb93b49a67a2d2b3c4886d650eeda.tar.gz
use _X_UNUSED to quiet compiler warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/Error.c')
-rw-r--r--src/Error.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/Error.c b/src/Error.c
index a302dbd..b71cb8a 100644
--- a/src/Error.c
+++ b/src/Error.c
@@ -111,7 +111,7 @@ XrmDatabase *XtGetErrorDatabase(void)
}
XrmDatabase *XtAppGetErrorDatabase(
- XtAppContext app)
+ XtAppContext app _X_UNUSED)
{
XrmDatabase* retval;
#if GLOBALERRORS
@@ -144,7 +144,7 @@ void XtGetErrorDatabaseText(
}
void XtAppGetErrorDatabaseText(
- XtAppContext app,
+ XtAppContext app _X_UNUSED,
register _Xconst char* name,
register _Xconst char* type,
register _Xconst char* class,
@@ -352,7 +352,7 @@ void XtErrorMsg(
}
void XtAppErrorMsg(
- XtAppContext app,
+ XtAppContext app _X_UNUSED,
_Xconst char* name,
_Xconst char* type,
_Xconst char* class,
@@ -393,7 +393,7 @@ void XtWarningMsg(
}
void XtAppWarningMsg(
- XtAppContext app,
+ XtAppContext app _X_UNUSED,
_Xconst char* name,
_Xconst char* type,
_Xconst char* class,
@@ -427,7 +427,7 @@ void XtSetErrorMsgHandler(
}
XtErrorMsgHandler XtAppSetErrorMsgHandler(
- XtAppContext app,
+ XtAppContext app _X_UNUSED,
XtErrorMsgHandler handler _X_NORETURN)
{
XtErrorMsgHandler old;
@@ -461,7 +461,7 @@ void XtSetWarningMsgHandler(
}
XtErrorMsgHandler XtAppSetWarningMsgHandler(
- XtAppContext app,
+ XtAppContext app _X_UNUSED,
XtErrorMsgHandler handler)
{
XtErrorMsgHandler old;
@@ -508,7 +508,7 @@ void XtError(
}
void XtAppError(
- XtAppContext app,
+ XtAppContext app _X_UNUSED,
_Xconst char* message)
{
#if GLOBALERRORS
@@ -535,7 +535,7 @@ void XtWarning(
}
void XtAppWarning(
- XtAppContext app,
+ XtAppContext app _X_UNUSED,
_Xconst char* message)
{
#if GLOBALERRORS
@@ -562,7 +562,7 @@ void XtSetErrorHandler(XtErrorHandler handler _X_NORETURN)
}
XtErrorHandler XtAppSetErrorHandler(
- XtAppContext app,
+ XtAppContext app _X_UNUSED,
XtErrorHandler handler _X_NORETURN)
{
XtErrorHandler old;
@@ -595,7 +595,7 @@ void XtSetWarningHandler(XtErrorHandler handler)
}
XtErrorHandler XtAppSetWarningHandler(
- XtAppContext app,
+ XtAppContext app _X_UNUSED,
XtErrorHandler handler)
{
XtErrorHandler old;
@@ -616,10 +616,10 @@ XtErrorHandler XtAppSetWarningHandler(
}
void _XtSetDefaultErrorHandlers(
- XtErrorMsgHandler *errMsg,
- XtErrorMsgHandler *warnMsg,
- XtErrorHandler *err,
- XtErrorHandler *warn)
+ XtErrorMsgHandler *errMsg _X_UNUSED,
+ XtErrorMsgHandler *warnMsg _X_UNUSED,
+ XtErrorHandler *err _X_UNUSED,
+ XtErrorHandler *warn _X_UNUSED)
{
#ifndef GLOBALERRORS
LOCK_PROCESS;