summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-04-16 15:47:26 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-04-16 15:47:26 -0700
commita636334182348da3b3f62012c1ae7690339ec620 (patch)
tree6687984fa4d61e86483450e34060aa4b0cffb9e9
parent509bceb0f731f580903a32e4861b863a512dfd0b (diff)
Mark Usage() with _X_NORETURN to silence gcc warning
main.c: In function ‘Usage’: main.c:75:1: warning: function might be possible candidate for attribute ‘noreturn’ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac2
-rw-r--r--pmint.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 20dbac2..f996dc7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,7 +49,7 @@ if [[ -z $LBXPROXY ]] ; then
fi
# Checks for pkg-config packages
-PKG_CHECK_MODULES(PROXYMNGR, ice xt xproto xproxymngproto)
+PKG_CHECK_MODULES(PROXYMNGR, [ice xt xproto >= 7.0.17 xproxymngproto])
AC_CHECK_FUNC(strcasecmp, [],
AC_DEFINE([NEED_STRCASECMP],1,
diff --git a/pmint.h b/pmint.h
index 9f08187..9254824 100644
--- a/pmint.h
+++ b/pmint.h
@@ -68,7 +68,7 @@ extern void PMReplyProcessMessages ( IceConn iceConn, IcePointer clientData, int
extern void PMSetupProcessMessages ( IceConn iceConn, IcePointer clientData, int opcode, unsigned long length, int swap, IceReplyWaitInfo *replyWait, int *replyReadyRet );
extern void SendGetProxyAddrReply ( PMconn *requestor, int status, const char *addr, const char *error );
extern void SetCloseOnExec ( int fd );
-extern void Usage ( void );
+extern void Usage ( void ) _X_NORETURN;
extern void _XtIceWatchProc ( IceConn ice_conn, IcePointer client_data, int opening, IcePointer *watch_data );
extern void _XtProcessIceMsgProc ( XtPointer client_data, int *source, XtInputId *id );