[PATCH:proxymngr 2/2] Mark Usage() with _X_NORETURN to silence gcc warning

Alan Coopersmith alan.coopersmith at oracle.com
Mon Apr 16 15:52:04 PDT 2012


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 at oracle.com>
---
 configure.ac |    2 +-
 pmint.h      |    2 +-
 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 );
 
-- 
1.7.9.2



More information about the xorg-devel mailing list