summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-07-08 18:13:10 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-10-02 22:14:45 -0700
commit5425131a498cdab54fbcfbae4991b22ebfa793ee (patch)
treee0cecd3c49a047d7fe027656fcea633e09317944
parentf0df23d778ae5b85745de0e48729b039b5b3f69a (diff)
Add _X_NORETURN to additional functions suggested by gcc warnings
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--common.c4
-rw-r--r--scope.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/common.c b/common.c
index 86bfca5..980c4c7 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 fc512f4..c20deba 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 {
@@ -646,7 +646,7 @@ GetScopePort(void)
/* */
/* ********************************************** */
-static void
+static void _X_NORETURN
Usage(void)
{
fprintf(stderr,