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 /src | |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/twm.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 ); |