- Fix clang analyzer for optimize compile analysis.
git-svn-id: file:///svn/unbound/trunk@4929
be551aaa-1e26-0410-a405-
d3ace91eadb9
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
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;
}
} 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
/**