diff --git a/doc/Changelog b/doc/Changelog index 94ea51d01..8e7965d22 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -2,6 +2,7 @@ - updated contrib/fastrpz.patch to apply for this version - dnscrypt.c removed sizeof to get array bounds. - Fix clang analyzer for optimize compile analysis. + - Fix testlock code to set noreturn on error routine. 1 October 2018: Wouter - tag for release 1.8.1rc1. diff --git a/testcode/checklocks.c b/testcode/checklocks.c index 7e6f0bb5d..1b5ef282b 100644 --- a/testcode/checklocks.c +++ b/testcode/checklocks.c @@ -71,6 +71,9 @@ static pid_t check_lock_pid; /** print all possible debug info on the state of the system */ static void total_debug_info(void); +/** print pretty lock error and exit (decl for NORETURN attribute) */ +static void lock_error(struct checked_lock* lock, const char* func, + const char* file, int line, const char* err) ATTR_NORETURN; /** print pretty lock error and exit */ static void lock_error(struct checked_lock* lock,