summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-05-11 22:22:25 -0700
committerJeremy Huddleston <jeremyhu@apple.com>2011-05-11 22:22:25 -0700
commitbde0b06b465adb868d38d3721b95ea337bad8eb9 (patch)
treec02be677c43ec5e61134aaa17d2ac4890d089477
parent2f5d1e29f5a803ba2417d6fe20782c05ed932612 (diff)
Mark Done() as _X_NORETURN
list.c:103:11: warning: Access to field 'next' results in a dereference of a null pointer (loaded from variable 'nptr') nptr->next = *list_head; ~~~~ ^ Found-by: clang static analyzer Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--configure.ac2
-rw-r--r--src/twm.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index fc63127..9f2d7c1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,7 +50,7 @@ AC_PROG_LEX
AC_CHECK_FUNCS([mkstemp])
# Checks for pkg-config packages
-PKG_CHECK_MODULES(TWM, x11 xext xt xmu ice sm)
+PKG_CHECK_MODULES(TWM, x11 xext xt xmu ice sm xproto >= 7.0.17)
AC_OUTPUT([Makefile
src/Makefile
diff --git a/src/twm.h b/src/twm.h
index 6e2bb27..1a546a3 100644
--- a/src/twm.h
+++ b/src/twm.h
@@ -353,7 +353,7 @@ extern void InitVariables ( void );
extern void CreateFonts ( void );
extern void RestoreWithdrawnLocation ( TwmWindow *tmp );
extern void Reborder( Time time);
-extern void Done( XtPointer, XtSignalId * );
+extern void Done( XtPointer, XtSignalId * ) _X_NORETURN;
extern void ComputeCommonTitleOffsets ( void );
extern void ComputeTitleLocation ( TwmWindow *tmp );
extern void ComputeWindowTitleOffsets ( TwmWindow *tmp_win, int width, Bool squeeze );