diff options
author | Evan Hunter <evan@ozhiker.com> | 2016-02-21 21:08:48 +0000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-03-27 13:55:31 +1000 |
commit | 14a44ad1274ed11f168cae905bf4bde62f8eb073 (patch) | |
tree | 861ede337061b5bae11d8146007574610fd39936 /jim.c | |
parent | d8a163f004e173441f05a5e6718fcc9728c82f81 (diff) |
Prevent static analysers from thinking that variable fn might be used whilst null
Diffstat (limited to 'jim.c')
-rw-r--r-- | jim.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -6624,6 +6624,7 @@ static int ListSortElements(Jim_Interp *interp, Jim_Obj *listObjPtr, struct lsor default: fn = NULL; /* avoid warning */ JimPanic((1, "ListSort called with invalid sort type")); + return -1; /* Should not be run but keeps static analysers happy */ } if (info->indexed) { |