]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix testlock code to set noreturn on error routine.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Oct 2018 10:53:40 +0000 (10:53 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Oct 2018 10:53:40 +0000 (10:53 +0000)
git-svn-id: file:///svn/unbound/trunk@4923 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
testcode/checklocks.c

index 94ea51d018b18d2ad7527c4369cc018127d4b915..8e7965d220eb4c18d7541fe84b2e041458ff57ae 100644 (file)
@@ -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.
index 7e6f0bb5db57f801a4730c47d086f36fa9101f85..1b5ef282b5e4738ee420be1c789f4f2b04217973 100644 (file)
@@ -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,