Remove that fix, analyzer is for debug with assertions.

- Fix clang analyzer for optimize compile analysis.


git-svn-id: file:///svn/unbound/trunk@4929 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2018-10-02 12:32:33 +00:00
parent a3c3e13b2f
commit d967ceb98b
3 changed files with 1 additions and 7 deletions

View file

@ -1,7 +1,6 @@
2 October 2018: Wouter
- 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.
- Remove unused variable from contrib fastrpz/rpz.c and
remove unused diagnostic pragmas that themselves generate warnings

View file

@ -2828,7 +2828,7 @@ az_generate_any_answer(struct auth_zone* z, struct regional* region,
if(!msg_add_rrset_an(z, region, msg, node, rrset)) return 0;
added++;
}
if(added == 0 && node->rrsets) {
if(added == 0 && node && node->rrsets) {
if(!msg_add_rrset_an(z, region, msg, node,
node->rrsets)) return 0;
}

View file

@ -201,13 +201,8 @@ void log_vmsg(int pri, const char* type, const char* format, va_list args);
} while(0);
#endif
#else
#ifdef __clang_analyzer__
/* tell clang analyzer that the code path with !x is not there */
#define log_assert(x) if(!(x)) fatal_exit("error")
#else
# define log_assert(x) /*nothing*/
#endif
#endif
#ifdef USE_WINSOCK
/**