diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-11 22:22:25 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-05-11 22:22:25 -0700 |
commit | bde0b06b465adb868d38d3721b95ea337bad8eb9 (patch) | |
tree | c02be677c43ec5e61134aaa17d2ac4890d089477 | |
parent | 2f5d1e29f5a803ba2417d6fe20782c05ed932612 (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.ac | 2 | ||||
-rw-r--r-- | src/twm.h | 2 |
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 @@ -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 ); |