summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-17 22:22:15 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-07-17 22:22:15 -0700
commita79de96226321f79f471574830d64080559a1557 (patch)
tree22ab05f61aecef072ea7be14022312f79f4cdfa0
parent9c2e2d401d32ed3f6a4e4e775581321eada9c734 (diff)
downloadiceauth-a79de96226321f79f471574830d64080559a1557.tar.gz
Mark unused arguments in callback functions to quiet clang warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac2
-rw-r--r--process.c34
2 files changed, 18 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac
index d300e5c..a9e72aa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,7 +36,7 @@ XORG_MACROS_VERSION(1.8)
XORG_DEFAULT_OPTIONS
# Checks for pkg-config packages
-PKG_CHECK_MODULES(ICEAUTH, [xproto >= 7.0.17 ice])
+PKG_CHECK_MODULES(ICEAUTH, [xproto >= 7.0.22 ice])
XORG_WITH_LINT
diff --git a/process.c b/process.c
index fdea753..d61fcf7 100644
--- a/process.c
+++ b/process.c
@@ -473,7 +473,7 @@ static volatile Bool dieing = False;
#define WRITES(fd, S) (void)write((fd), (S), strlen((S)))
/* ARGSUSED */
-static void die (int sig)
+static void die (_X_UNUSED int sig)
{
dieing = True;
_exit (auth_finalize ());
@@ -746,8 +746,8 @@ static void fprintfhex (
/* ARGSUSED */
static int dump_entry (
- const char *inputfilename,
- int lineno,
+ const char *inputfilename _X_UNUSED,
+ int lineno _X_UNUSED,
IceAuthFileEntry *auth,
char *data)
{
@@ -980,8 +980,8 @@ static int search_and_do (
/* ARGSUSED */
static int remove_entry (
- const char *inputfilename,
- int lineno,
+ const char *inputfilename _X_UNUSED,
+ int lineno _X_UNUSED,
IceAuthFileEntry *auth,
char *data)
{
@@ -1070,10 +1070,10 @@ static int do_help (
*/
/* ARGSUSED */
static int do_questionmark (
- const char *inputfilename,
- int lineno,
- int argc,
- char **argv)
+ const char *inputfilename _X_UNUSED,
+ int lineno _X_UNUSED,
+ int argc _X_UNUSED,
+ char **argv _X_UNUSED)
{
const CommandTable *ct;
unsigned int i;
@@ -1487,10 +1487,10 @@ static Bool alldone = False;
/* ARGSUSED */
static int do_exit (
- const char *inputfilename,
- int lineno,
- int argc,
- char **argv)
+ const char *inputfilename _X_UNUSED,
+ int lineno _X_UNUSED,
+ int argc _X_UNUSED,
+ char **argv _X_UNUSED)
{
/* allow bogus stuff */
alldone = True;
@@ -1502,10 +1502,10 @@ static int do_exit (
*/
/* ARGSUSED */
static int do_quit (
- const char *inputfilename,
- int lineno,
- int argc,
- char **argv)
+ const char *inputfilename _X_UNUSED,
+ int lineno _X_UNUSED,
+ int argc _X_UNUSED,
+ char **argv _X_UNUSED)
{
/* allow bogus stuff */
die (0);