handle missing return values

This commit is contained in:
Patrick Georgi
2025-12-09 22:38:19 +01:00
parent 1b852f19a5
commit 7ab683d29a
22 changed files with 48 additions and 41 deletions

View File

@@ -111,6 +111,7 @@ void (*austext_exit_last) (int) = NULL;
/* DtSearchExit */
/* */
/****************************************/
__attribute__((noreturn))
void DtSearchExit (int return_code)
{
if (austext_exit_first != NULL)

View File

@@ -579,11 +579,9 @@ static DtSrResult *ditto_sort (DtSrResult * lst)
return merge_by_prox (ditto_sort (lst), ditto_sort (lst2));
case DtSrSORT_DATE:
return merge_by_date (ditto_sort (lst), ditto_sort (lst2));
default:
fprintf (aa_stderr, PROGNAME "525 Invalid Sort Type %d.\n",
ditsort_type);
DtSearchExit (32);
}
fprintf (aa_stderr, PROGNAME "525 Invalid Sort Type %d.\n", ditsort_type);
DtSearchExit (32);
} /* ditto_sort() */