[PATCH:xscope 08/24] Add _X_NORETURN to additional functions suggested by gcc warnings

Alan Coopersmith alan.coopersmith at oracle.com
Fri Aug 31 22:17:50 PDT 2012


Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
 common.c |    4 ++--
 scope.c  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/common.c b/common.c
index 0492e47..8c88aae 100644
--- a/common.c
+++ b/common.c
@@ -107,14 +107,14 @@ SignalINT(int sig)
     Interrupt = 1;
 }
 
-static void
+static void _X_NORETURN
 SignalQUIT(int sig)
 {
     debug(1, (stderr, "==> SIGQUIT received\n"));
     exit(1);
 }
 
-static void
+static void _X_NORETURN
 SignalTERM(int sig)
 {
     debug(1, (stderr, "==> SIGTERM received\n"));
diff --git a/scope.c b/scope.c
index f10648b..d97b316 100644
--- a/scope.c
+++ b/scope.c
@@ -128,7 +128,7 @@ static CMDResult CMDDisable(int argc, char **argv);
 static CMDResult CMDEnable(int argc, char **argv);
 static CMDResult CMDLevel(int argc, char **argv);
 static CMDResult CMDAudio(int argc, char **argv);
-static CMDResult CMDQuit(int argc, char **argv);
+static CMDResult CMDQuit(int argc, char **argv) _X_NORETURN;
 static CMDResult CMDHelp(int argc, char **argv);
 
 typedef struct _CMDFunc {
@@ -641,7 +641,7 @@ GetScopePort(void)
 /*                                                */
 /* ********************************************** */
 
-static void
+static void _X_NORETURN
 Usage(void)
 {
     fprintf(stderr,
-- 
1.7.9.2



More information about the xorg-devel mailing list