- Fix clang analyzer for optimize compile analysis.

git-svn-id: file:///svn/unbound/trunk@4922 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2018-10-02 10:51:05 +00:00
parent b09cfb8fb1
commit c85ff492d0
2 changed files with 6 additions and 0 deletions

View File

@ -1,6 +1,7 @@
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.
1 October 2018: Wouter
- tag for release 1.8.1rc1.

View File

@ -201,8 +201,13 @@ 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
/**