summaryrefslogtreecommitdiff
path: root/xconsole.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-06-05 18:20:49 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-06-05 18:20:49 -0700
commitf9b34c2eae4c3abe40904e4274c5d82cd16fc7af (patch)
tree269bdc973417449e7a457996c40a2b6926162c71 /xconsole.c
parenta12b6b391ab96241aa14f918e36a2fbd92734c7d (diff)
Mark functions _X_NORETURN that gcc warnings suggest
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xconsole.c')
-rw-r--r--xconsole.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/xconsole.c b/xconsole.c
index 6e10403..4d9c8e7 100644
--- a/xconsole.c
+++ b/xconsole.c
@@ -30,6 +30,8 @@ in this Software without prior written authorization from The Open Group.
#include "config.h"
#endif
+#include <X11/Xfuncproto.h>
+
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Xatom.h>
@@ -382,7 +384,7 @@ KillChild(int sig)
#endif
/*ARGSUSED*/
-static void
+static void _X_NORETURN
Quit(Widget widget, XEvent *event, String *params, Cardinal *num_params)
{
#ifdef USE_OSM
@@ -634,7 +636,7 @@ ConvertSelection(Widget w, Atom *selection, Atom *target, Atom *type,
return False;
}
-static void
+static void _X_NORETURN
LoseSelection(Widget w, Atom *selection)
{
Quit (w, (XEvent*)NULL, (String*)NULL, (Cardinal*)NULL);